Skip to content

Commit

Permalink
Merge branch 'main' into feat/better-network-not-found-err
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Aug 22, 2024
2 parents ec21e7d + 33b2fb5 commit d508968
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/functional/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,22 @@ def test_from_python_library(self):
assert "site-packages" in str(web3.path)
assert web3.path.name == "web3"

def test_hash(self, with_dependencies_project_path, project_from_manifest):
"""
Show we can use projects in sets.
"""
project_0 = Project(with_dependencies_project_path)
project_1 = Project.from_python_library("web3")
project_2 = project_from_manifest

# Show we can use in sets.
project_set = {project_0, project_1, project_2}
assert len(project_set) == 3

# Show we can use as dict-keys:
project_dict = {project_0: 123}
assert project_dict[project_0] == 123


class TestBrownieProject:
"""
Expand Down

0 comments on commit d508968

Please sign in to comment.