Skip to content

Commit

Permalink
Remove unneeded mockers
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-sweet committed Jun 30, 2023
1 parent c627783 commit 075454b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/napari_cryoet_data_portal/_tests/test_uri_widget.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
from pytest_mock import MockerFixture
from pytestqt.qtbot import QtBot

from cryoet_data_portal import Client
Expand All @@ -24,7 +23,7 @@ def test_init(qtbot: QtBot):
assert not widget._progress.isVisibleTo(widget)


def test_click_connect_when_uri_exists(widget: UriWidget, qtbot: QtBot, mocker: MockerFixture):
def test_click_connect_when_uri_exists(widget: UriWidget, qtbot: QtBot):
widget._uri_edit.setText(GRAPHQL_URI)

with qtbot.waitSignal(widget.connected):
Expand All @@ -38,7 +37,7 @@ def test_click_connect_when_uri_exists(widget: UriWidget, qtbot: QtBot, mocker:


@pytest.mark.skip(reason="https://github.com/chanzuckerberg/cryoet-data-portal/issues/16")
def test_click_connect_when_uri_does_not_exist(widget: UriWidget, qtbot: QtBot, mocker: MockerFixture):
def test_click_connect_when_uri_does_not_exist(widget: UriWidget, qtbot: QtBot):
widget._uri_edit.setText("https://not.a.graphl.url/v1/graphql")

with qtbot.captureExceptions() as exceptions:
Expand Down

0 comments on commit 075454b

Please sign in to comment.