Mercurial > repos > davidvanzessen > shm_csr
diff tests/test_shm_csr.py @ 93:8fcf31272f6e draft
planemo upload commit a43893724cc769bed8a1f19a5b19ec1ba20cb63c
author | rhpvorderman |
---|---|
date | Mon, 06 Mar 2023 11:36:32 +0000 |
parents | cf8ad181628f |
children | 84e9e5c8c101 |
line wrap: on
line diff
--- a/tests/test_shm_csr.py Mon Dec 12 12:32:44 2022 +0000 +++ b/tests/test_shm_csr.py Mon Mar 06 11:36:32 2023 +0000 @@ -43,11 +43,20 @@ return container.text +def ignore_files(src, files): + "Ignore virtualenv and git directories to prevent massive tmp folders" + if os.path.basename(src) in (".venv", ".git"): + return files + return () + @pytest.fixture(scope="module") def shm_csr_result(): temp_dir = Path(tempfile.mkdtemp()) tool_dir = temp_dir / "shm_csr" - shutil.copytree(GIT_ROOT, tool_dir) + shutil.copytree( + GIT_ROOT, tool_dir, + # Ignore .venv and .git directories. + ignore=ignore_files) working_dir = temp_dir / "working" working_dir.mkdir(parents=True) output_dir = temp_dir / "outputs"