File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11from pathlib import Path
22from typing import Optional
3- from unittest .mock import ANY , MagicMock , Mock , patch
3+ from unittest .mock import ANY , MagicMock , patch
44from urllib .parse import urlparse
55
66import pytest
@@ -128,12 +128,12 @@ def test_upload_gain_reference(
128128 mock_machine_config ["rsync_url" ] = rsync_url_setting
129129
130130 # Assign expected values to the mock objects
131- mock_response = Mock ()
131+ mock_response = MagicMock ()
132132 mock_response .status_code = 200
133133 mock_response .json .return_value = mock_machine_config
134134 mock_request .get .return_value = mock_response
135135 mock_get_server_url .return_value = server_url
136- mock_subprocess .run .return_value = Mock (returncode = 0 )
136+ mock_subprocess .run .return_value = MagicMock (returncode = 0 )
137137
138138 # Construct payload and pass request to function
139139 gain_ref_file = f"{ gain_ref_dir } /gain.mrc"
You can’t perform that action at this time.
0 commit comments