From 9fc2172cd005237045293fab2d336939b9597351 Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Fri, 27 Sep 2024 17:04:39 -0500 Subject: [PATCH] test: debug wtf --- .github/workflows/test.yaml | 2 +- ape_vyper/imports.py | 1 - tests/functional/test_compiler.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cfdb0eb..130c693 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -98,7 +98,7 @@ jobs: - name: Run Tests run: | - pytest -k "not test_coverage" -m "not fuzzing" -n 0 -s \ + pytest tests/functional/test_compiler.py::test_get_compiler_settings -k "not test_coverage" -m "not fuzzing" -n 0 -s \ --cov=ape_vyper \ --cov-branch \ --cov-report term \ diff --git a/ape_vyper/imports.py b/ape_vyper/imports.py index 276c604..d6caf5b 100644 --- a/ape_vyper/imports.py +++ b/ape_vyper/imports.py @@ -342,7 +342,6 @@ def get_imports( def _get_imports(self, paths: list[Path], project: ProjectManager) -> ImportMap: import_map = self._projects[project.project_id] - import_map.paths = list({*import_map.paths, *paths}) for path in paths: if path in import_map: # Already handled. diff --git a/tests/functional/test_compiler.py b/tests/functional/test_compiler.py index f5cb775..16ba3b7 100644 --- a/tests/functional/test_compiler.py +++ b/tests/functional/test_compiler.py @@ -806,7 +806,7 @@ def test_get_compiler_settings(project, compiler): assert len(vyper4_settings) == 1, f"extra keys={''.join([f'{x}' for x in vyper4_settings])}" v4_version_used = next(iter(vyper4_settings.keys())) - assert v4_version_used >= Version("0.4.0"), f"version={v4_version_used}" + assert v4_version_used >= Version("0.4.0"), f"version={v4_version_used} full_data={vyper4_settings}" assert vyper4_settings[v4_version_used]["gas%shanghai"]["enable_decimals"] is True assert vyper4_settings[v4_version_used]["gas%shanghai"]["optimize"] == "gas" assert vyper4_settings[v4_version_used]["gas%shanghai"]["outputSelection"] == {