Skip to content

Commit

Permalink
export: add poetry-plugin-export
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Apr 5, 2022
1 parent 5746780 commit 691ebdc
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 65 deletions.
119 changes: 67 additions & 52 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ generate-setup-file = false
python = "^3.7"

poetry-core = "^1.1.0a7"
poetry-plugin-export = "^1.0"
cachecontrol = { version = "^0.12.9", extras = ["filecache"] }
cachy = "^0.3.0"
cleo = "^1.0.0a4"
Expand Down
17 changes: 4 additions & 13 deletions tests/console/commands/test_export.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from __future__ import annotations

from typing import TYPE_CHECKING
from unittest.mock import ANY
from unittest.mock import Mock

import pytest

from poetry.console.commands.export import Exporter
from poetry_plugin_export.exporter import Exporter

from tests.helpers import get_package


Expand Down Expand Up @@ -155,15 +155,6 @@ def test_export_with_urls(
the Exporter test.
"""
mock_export = Mock()
monkeypatch.setattr(Exporter, "export", mock_export)
monkeypatch.setattr(Exporter, "with_urls", mock_export)
tester.execute("--without-urls")
mock_export.assert_called_once_with(
ANY,
ANY,
ANY,
dev=False,
extras=[],
with_credentials=False,
with_hashes=True,
with_urls=False,
)
mock_export.assert_called_once_with(False)

0 comments on commit 691ebdc

Please # to comment.