Skip to content

Commit

Permalink
Attempt to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krigga committed May 28, 2024
1 parent 1267e7a commit 5ca0490
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,3 @@

# Pull all features from the base ragger conftest using the overridden configuration
pytest_plugins = ("ragger.conftest.base_conftest", )

# Notes :
# 1. Remove this fixture once the pending review screen is removed from the app
# 2. This fixture clears the pending review screen before each test
# 3. The scope should be the same as the one configured by BACKEND_SCOPE in
# ragger/conftest/configuration.py
@pytest.fixture(scope="class", autouse=True)
def clear_pending_review(firmware, navigator):
print("Clearing pending review")
# Press a button to clear the pending review
if firmware.device.startswith("nano"):
instructions = [
NavInsID.BOTH_CLICK,
]
else:
instructions = [
NavInsID.USE_CASE_CHOICE_CONFIRM,
]
navigator.navigate(instructions,screen_change_before_first_instruction=False)

0 comments on commit 5ca0490

Please sign in to comment.