Skip to content

Commit fda4f56

Browse files
committed
Use 'pytest.mark' instead of just 'mark' for greater clarity in decorator
1 parent 9b9c738 commit fda4f56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/instrument_server/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from unittest.mock import ANY, MagicMock, Mock, patch
44
from urllib.parse import urlparse
55

6+
import pytest
67
from fastapi import FastAPI
78
from fastapi.testclient import TestClient
8-
from pytest import mark
99
from pytest_mock import MockerFixture
1010

1111
from murfey.instrument_server.api import GainReference, _get_murfey_url
@@ -38,7 +38,7 @@ def set_up_test_client(session_id: Optional[int] = None):
3838
)
3939

4040

41-
@mark.parametrize("test_params", test_get_murfey_url_params_matrix)
41+
@pytest.mark.parametrize("test_params", test_get_murfey_url_params_matrix)
4242
def test_get_murfey_url(
4343
test_params: tuple[str],
4444
mock_client_configuration, # From conftest.py
@@ -98,7 +98,7 @@ def test_check_multigrid_controller_exists(mocker: MockerFixture):
9898
)
9999

100100

101-
@mark.parametrize("test_params", test_upload_gain_reference_params_matrix)
101+
@pytest.mark.parametrize("test_params", test_upload_gain_reference_params_matrix)
102102
@patch("murfey.instrument_server.api.subprocess")
103103
@patch("murfey.instrument_server.api.tokens")
104104
@patch("murfey.instrument_server.api._get_murfey_url")

0 commit comments

Comments
 (0)