Skip to content

Commit b27585c

Browse files
committed
'tokens' variable should not require mocking anymore
1 parent bd8883f commit b27585c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/instrument_server/test_api.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,11 @@ def test_get_murfey_url(
6161

6262
@mark.parametrize("test_params", test_upload_gain_reference_params_matrix)
6363
@patch("murfey.instrument_server.api.subprocess")
64-
@patch("murfey.instrument_server.api.tokens")
6564
@patch("murfey.instrument_server.api._get_murfey_url")
6665
@patch("murfey.instrument_server.api.requests")
6766
def test_upload_gain_reference(
6867
mock_request,
6968
mock_get_server_url,
70-
mock_tokens,
7169
mock_subprocess,
7270
test_params: tuple[Optional[str]],
7371
):
@@ -97,9 +95,7 @@ def test_upload_gain_reference(
9795
mock_subprocess.run.return_value = Mock(
9896
returncode=0, stderr="An error has occurred."
9997
)
100-
# mock_tokens = {
101-
# session_id: "hello",
102-
# }
98+
10399
# Construct payload and pass request to function
104100
gain_ref_file = f"{gain_ref_dir}/gain.mrc"
105101
visit_path = "2025/aa00000-0"

0 commit comments

Comments
 (0)