Skip to content

Commit ad11389

Browse files
committed
test: fix at least some of the tests
1 parent 5c22ff6 commit ad11389

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_compiler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def test_get_version_map_version_specified_in_config_file(compiler):
296296

297297

298298
def test_get_version_map_raises_on_non_solidity_sources(project, compiler):
299-
path = project.sources.lookup("contracts/RandomVyperFile.vy")
299+
path = project.contracts_folder / "RandomVyperFile.vy"
300300
with raises_because_not_sol:
301301
compiler.get_version_map((path,), project=project)
302302

@@ -480,7 +480,7 @@ def test_compile_only_returns_contract_types_for_inputs(project, compiler):
480480

481481

482482
def test_compile_vyper_contract(project, compiler):
483-
path = project.sources.lookup("contracts/RandomVyperFile.vy")
483+
path = project.contracts_folder / "RandomVyperFile.vy"
484484
with raises_because_not_sol:
485485
_ = [c for c in compiler.compile((path,), project=project)]
486486

@@ -596,7 +596,7 @@ def test_compile_outputs_compiler_data_to_manifest(project, compiler):
596596
actual = project.manifest.compilers[0]
597597
assert actual.name == "solidity"
598598
assert "CompilesOnce" in actual.contractTypes
599-
assert actual.version == "0.8.25+commit.b61c2a91"
599+
assert actual.version == "0.8.26+commit.8a97fa7a"
600600
# Compiling again should not add the same compiler again.
601601
_ = [c for c in compiler.compile((path,), project=project)]
602602
length_again = len(project.manifest.compilers or [])

0 commit comments

Comments
 (0)