Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sed-i committed Mar 28, 2024
1 parent 575f94e commit 44759e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ def get_this_script_dir() -> Path:

@pytest.fixture(scope="module")
async def rendered_bundle() -> Path:
"""Returns the pathlib.Path for the rendered bundle file."""
# If a bundle.yaml file already exists, use it (do no render anything).
user_bundle = get_this_script_dir() / ".." / ".." / "bundle.yaml"
if not user_bundle.exists():
"""Returns the pathlib.Path for the bundle file."""
bundle = get_this_script_dir() / ".." / ".." / "bundle.yaml"
if not bundle.exists():
raise FileNotFoundError("Expected a 'bundle.yaml' to be present")

return user_bundle
return bundle
9 changes: 4 additions & 5 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ async def setup_env(ops_test: OpsTest):

@pytest.fixture(scope="module")
async def rendered_bundle() -> Path:
"""Returns the pathlib.Path for the rendered bundle file."""
# If a bundle.yaml file already exists, use it (do no render anything).
user_bundle = get_this_script_dir() / ".." / ".." / "bundle.yaml"
if not user_bundle.exists():
"""Returns the pathlib.Path for the bundle file."""
bundle = get_this_script_dir() / ".." / ".." / "bundle.yaml"
if not bundle.exists():
raise FileNotFoundError("Expected a 'bundle.yaml' to be present")

return user_bundle
return bundle

0 comments on commit 44759e3

Please sign in to comment.