From 075454ba22fe756e5251fe91b07feaf464960415 Mon Sep 17 00:00:00 2001 From: Andy Sweet Date: Fri, 30 Jun 2023 16:04:17 -0700 Subject: [PATCH] Remove unneeded mockers --- src/napari_cryoet_data_portal/_tests/test_uri_widget.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/napari_cryoet_data_portal/_tests/test_uri_widget.py b/src/napari_cryoet_data_portal/_tests/test_uri_widget.py index 8b77d73..91e6a41 100644 --- a/src/napari_cryoet_data_portal/_tests/test_uri_widget.py +++ b/src/napari_cryoet_data_portal/_tests/test_uri_widget.py @@ -1,5 +1,4 @@ import pytest -from pytest_mock import MockerFixture from pytestqt.qtbot import QtBot from cryoet_data_portal import Client @@ -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): @@ -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: