Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RisingOrange committed Jan 14, 2025
1 parent 5c20636 commit fa1b501
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/addon/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
_post_message_to_ankihub_js,
)
from ankihub.gui.media_sync import media_sync
from ankihub.gui.menu import AnkiHubLogin, menu_state
from ankihub.gui.menu import AnkiHubLogin, menu_state, refresh_ankihub_menu
from ankihub.gui.operations import ankihub_sync
from ankihub.gui.operations.db_check import ah_db_check
from ankihub.gui.operations.db_check.ah_db_check import check_ankihub_db
Expand Down Expand Up @@ -5542,6 +5542,8 @@ def test_ankihub_menu_item_exists(self, anki_session_with_addon_data: AnkiSessio
entry_point.run()
with anki_session_with_addon_data.profile_loaded():
# Assert that the Config menu item exists
refresh_ankihub_menu()

config_action = next(
child
for child in menu_state.ankihub_menu.children()
Expand Down

0 comments on commit fa1b501

Please sign in to comment.