Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: actually fix test
Browse files Browse the repository at this point in the history
antazoey committed Jan 30, 2025
1 parent eda7d9c commit bfd2416
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/functional/test_project.py
Original file line number Diff line number Diff line change
@@ -674,17 +674,16 @@ class TestProject:
def test_init(self, with_dependencies_project_path):
# Purpose not using `project_with_contracts` fixture.
project = Project(with_dependencies_project_path)
assert project.path == with_dependencies_project_path
project.manifest_path.unlink(missing_ok=True)

# Re-init to show it doesn't create the manifest file.
project = Project(with_dependencies_project_path)
# NOTE: Using tempdir to avoid clashing with other tests during x-dist.
with project.isolate_in_tempdir() as temp_project:
assert project.path == with_dependencies_project_path
project.manifest_path.unlink(missing_ok=True)

# Re-init to show it doesn't create the manifest file.
project = Project(temp_project.path)

# Manifest should have been created by default
# (if there are sources). Note: Sources may be
# missing if another test runner via x-dist changed
# the config.
if [x for x in project.sources]:
# Manifest should not have been created by default
assert not project.manifest_path.is_file()

def test_init_invalid_config(self):

0 comments on commit bfd2416

Please sign in to comment.