Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 17, 2024
1 parent d8848b1 commit fa0ccae
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/functional/test_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,12 +681,10 @@ def test_installed(self, dependency):
assert dependency.installed

def test_installed_version_id_fails(self, project):
class BadDependency(LocalDependency):
@property
def version_id(self) -> str:
raise ValueError("boo!")

api = BadDependency(local=Path.cwd(), name="bad")
api = PythonDependency(
site_package="apethisdependencyisnotinstalled",
name="apethisdependencyisnotinstalled",
)
dependency = Dependency(api, project)
assert not dependency.installed

Expand Down

0 comments on commit fa0ccae

Please sign in to comment.