Skip to content

Commit

Permalink
Merge branch 'main' into fix/ops/bug-issue-template
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Jan 30, 2025
2 parents 71bdbb2 + f4ae4bc commit f2c8f08
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 f2c8f08

Please sign in to comment.