Skip to content

Commit bd8883f

Browse files
committed
Added 'http://' to URL test cases with no schemes when performing comparison at the end
1 parent c196e6b commit bd8883f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/instrument_server/test_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ def test_get_murfey_url(
4242

4343
# Check that the components of the result match those in the config
4444
parsed_server = urlparse(known_server)
45-
parsed_original = urlparse(str(mock_client_configuration["Murfey"].get("server")))
45+
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)
4649
assert parsed_server.scheme in ("http", "https")
4750
assert parsed_server.netloc == parsed_original.netloc
4851
assert parsed_server.path == parsed_original.path

0 commit comments

Comments
 (0)