-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e8313c
commit 1ee8886
Showing
4 changed files
with
20 additions
and
45 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
...abase/src/simcore_postgres_database/migration/versions/3720518f82a7_modify_licenses_db.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
|
||
@pytest.fixture | ||
def results_path(request): | ||
""" | ||
Fixture to retrieve the path to the test's results directory. | ||
""" | ||
# Check if `results_dir` is available in the current test's user properties | ||
results_dir = dict(request.node.user_properties).get("results_dir") | ||
if not results_dir: | ||
results_dir = "test-results" # Default results directory | ||
test_name = request.node.name | ||
test_dir = Path(results_dir) / test_name | ||
test_dir.mkdir(parents=True, exist_ok=True) # Ensure the test directory exists | ||
return test_dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters