We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c196e6b commit bd8883fCopy full SHA for bd8883f
tests/instrument_server/test_api.py
@@ -42,7 +42,10 @@ def test_get_murfey_url(
42
43
# Check that the components of the result match those in the config
44
parsed_server = urlparse(known_server)
45
- parsed_original = urlparse(str(mock_client_configuration["Murfey"].get("server")))
+ original_url = str(mock_client_configuration["Murfey"].get("server"))
46
+ if not original_url.startswith(("http://", "https://")):
47
+ original_url = f"http://{original_url}"
48
+ parsed_original = urlparse(original_url)
49
assert parsed_server.scheme in ("http", "https")
50
assert parsed_server.netloc == parsed_original.netloc
51
assert parsed_server.path == parsed_original.path
0 commit comments