Skip to content

Commit

Permalink
test: another flaky test (#2485)
Browse files Browse the repository at this point in the history
Co-authored-by: antazoey <[email protected]>
  • Loading branch information
antazoey and antazoey authored Jan 30, 2025
1 parent cb8adab commit f4ae4bc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/functional/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,14 +674,17 @@ 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)

# Manifest should have been created by default.
assert not project.manifest_path.is_file()
# Re-init to show it doesn't create the manifest file.
project = Project(temp_project.path)

# Manifest should not have been created by default
assert not project.manifest_path.is_file()

def test_init_invalid_config(self):
here = os.curdir
Expand Down

0 comments on commit f4ae4bc

Please sign in to comment.