Skip to content

Commit

Permalink
review @sanderegg
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 committed Dec 18, 2024
1 parent 7e8313c commit 1ee8886
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 45 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""rename usages to checkouts
Revision ID: aa6da21a0055
Revises: 3720518f82a7
Revises: 77ac824a77ff
Create Date: 2024-12-17 13:47:09.304574+00:00
"""
Expand All @@ -11,7 +11,7 @@

# revision identifiers, used by Alembic.
revision = "aa6da21a0055"
down_revision = "3720518f82a7"
down_revision = "77ac824a77ff"
branch_labels = None
depends_on = None

Expand Down
18 changes: 18 additions & 0 deletions tests/e2e-playwright/tests/platform_CI_tests/conftest.py
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
15 changes: 0 additions & 15 deletions tests/e2e-playwright/tests/platform_CI_tests/test_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@ def store_browser_context() -> bool:
return True


@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


@pytest.fixture
def logged_in_context(
playwright: Playwright,
Expand Down

0 comments on commit 1ee8886

Please sign in to comment.