diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-05-11 12:33:31 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-05-11 12:33:31 +0200 |
commit | 496d90f70a58c0040f8493aa8a5e4e2f106bfac7 (patch) | |
tree | af6ace104ad9a02f2fb15820dd6ea3469d4577d5 /tests/test_build.py | |
parent | 9e2cd3a25b6ff5addd7109414fdf5a535b9cbce3 (diff) | |
download | hydrilla-builder-496d90f70a58c0040f8493aa8a5e4e2f106bfac7.tar.gz hydrilla-builder-496d90f70a58c0040f8493aa8a5e4e2f106bfac7.zip |
make it easier to reuse/cache foreign package files when building a Hydrilla source package multiple times
Diffstat (limited to 'tests/test_build.py')
-rw-r--r-- | tests/test_build.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/test_build.py b/tests/test_build.py index 3d564e3..968ac8d 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -176,15 +176,6 @@ expected_source_description = { expected = [*expected_resources, expected_mapping, expected_source_description] -@pytest.fixture -def tmpdir() -> Iterable[str]: - """ - Provide test case with a temporary directory that will be automatically - deleted after the test. - """ - with TemporaryDirectory() as tmpdir: - yield Path(tmpdir) - def run_reuse(command, **kwargs): """ Instead of running a 'reuse' command, check if 'mock_reuse_missing' file @@ -677,10 +668,7 @@ def test_build_error(tmpdir, sample_source, sample_source_make_errors): error_type, error_regex = sample_source_make_errors dstdir = Path(tmpdir) / 'dstdir' - tmpdir = Path(tmpdir) / 'example' - dstdir.mkdir(exist_ok=True) - tmpdir.mkdir(exist_ok=True) with pytest.raises(error_type, match=error_regex): build.Build(sample_source, Path('index.json'))\ |