Skip to content

Commit d4f1b63

Browse files
committed
test: actually call method being tested
1 parent 161c4ce commit d4f1b63

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"cchecksum>=0.0.3,<1",
9797
# Pandas peer-dep: Numpy 2.0 causes issues for some users.
9898
"numpy<2",
99-
"packaging",
99+
"packaging>=23.0,<24",
100100
"pandas>=2.2.2,<3",
101101
"pluggy>=1.3,<2",
102102
"pydantic>=2.10.0,<3",

tests/functional/test_project.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,10 +1070,10 @@ def test_compile(self, project):
10701070
assert actual[0].contract_type.name == "VyperContract"
10711071

10721072
def test_values(self, tmp_project):
1073-
contracts: dict[str, ContractContainer] = dict(tmp_project.contracts)
1074-
assert "VyperContract" in contracts
1075-
example = contracts["VyperContract"]
1076-
count = len(contracts)
1073+
actual = [c.name for c in tmp_project.contracts.values()]
1074+
assert "VyperContract" in actual
1075+
example = tmp_project.contracts["VyperContract"]
1076+
count = len(tmp_project.contracts)
10771077

10781078
# Delete a file and try again, as a test.
10791079
file = tmp_project.path / example.source_id

0 commit comments

Comments
 (0)