Skip to content

Commit

Permalink
EBR-79: update existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
915-Misan-Teodora committed Jul 19, 2024
1 parent fec5ba2 commit 2f3bdf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tvbwidgets/tests/test_drive_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def mockk(token):
os.environ[CLB_AUTH] = "test_auth_token"
widget = StorageWidget()

widget.api.repos_dropdown.value = widget.api.repos_dropdown.options['repo1']
widget.api.files_list.value = widget.api.files_list.options[1]
widget.drive_api.repos_dropdown.value = widget.drive_api.repos_dropdown.options['repo1']
widget.drive_api.files_list.value = widget.drive_api.files_list.options[1]

assert widget.get_selected_file_name() == DUMMY_FILENAME
assert widget.get_selected_file_content() == DUMMY_CONTENT
4 changes: 2 additions & 2 deletions tvbwidgets/tests/test_head_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def mockk(token):
widget._TVBWidgetWithBrowser__display_message('ABC')
assert widget.message_label.value == HeadBrowser.MSG_TEMPLATE.format('ABC', HeadBrowser.MSG_COLOR)

widget.storage_widget.api.repos_dropdown.value = widget.storage_widget.api.repos_dropdown.options['repo1']
widget.storage_widget.api.files_list.value = widget.storage_widget.api.files_list.options[1]
widget.storage_widget.drive_api.repos_dropdown.value = widget.storage_widget.drive_api.repos_dropdown.options['repo1']
widget.storage_widget.drive_api.files_list.value = widget.storage_widget.drive_api.files_list.options[1]

widget.load_selected_file(Surface)
assert 'Only .zip' in widget.message_label.value
Expand Down

0 comments on commit 2f3bdf0

Please sign in to comment.