Skip to content

Commit

Permalink
Ensure UI tests have clean database to work around DSC-162
Browse files Browse the repository at this point in the history
  • Loading branch information
mirekdlugosz committed Aug 28, 2023
1 parent f12c5cf commit 2bffdac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions camayoc/tests/qpc/ui/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ def browser_context_args(browser_context_args):
return {**browser_context_args, **extra_context_args}


@pytest.fixture(scope="module")
def data_provider(data_provider):
data_provider.cleanup()
clear_all_entities()
return data_provider


@pytest.fixture
def ui_client(page):
client_session = BasicSession()
Expand Down

0 comments on commit 2bffdac

Please sign in to comment.