Skip to content

Commit 863a61c

Browse files
committed
Fixed broken API call in tests
1 parent c37d5d9 commit 863a61c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/instrument_server/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
upload_gain_reference,
1212
)
1313
from murfey.util import posix_path
14+
from murfey.util.api import url_path_for
1415

1516
test_get_murfey_url_params_matrix = (
1617
# Server URL to use
@@ -119,7 +120,7 @@ def test_upload_gain_reference(
119120
)
120121

121122
# Check that the machine config request was called
122-
machine_config_url = f"{server_url}/instruments/{instrument_name}/machine"
123+
machine_config_url = f"{server_url}{url_path_for('session_control.router', 'machine_info_by_instrument', instrument_name=instrument_name)}"
123124
mock_request.get.assert_called_once_with(
124125
machine_config_url,
125126
headers={"Authorization": ANY},

0 commit comments

Comments
 (0)