Skip to content

Commit

Permalink
test: debug wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 27, 2024
1 parent f8fdcd2 commit 9fc2172
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 0 additions & 1 deletion ape_vyper/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"] == {
Expand Down

0 comments on commit 9fc2172

Please sign in to comment.