Skip to content
Snippets Groups Projects

Delivery rework

Merged Daniel Lyons requested to merge delivery-rework into main
7 unresolved threads
2 files
+ 74
55
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -9,6 +9,11 @@ from delivery.deliverer import LocalDestination
@pytest.fixture
def dest_dir(tmpdir) -> pathlib.Path:
"""
Generate a destination directory.
:param tmpdir: the tmpdir fixture we depend on
:return: path to the destination directory
"""
# generate the destination directory
dest_dir = pathlib.Path(tmpdir) / "after"
dest_dir.mkdir()
@@ -17,6 +22,11 @@ def dest_dir(tmpdir) -> pathlib.Path:
@pytest.fixture
def file_to_deliver(tmpdir) -> pathlib.Path:
"""
Generate some files in a test directory for delivery.
:param tmpdir: pytest fixture for the temporary directory
:return: a file in the test directory
"""
# rewrap the tmpdir as a pathlib.Path instance
tmpdir = pathlib.Path(tmpdir)
Loading