File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 55from pathlib import Path
66import time
77from typing import Iterable , List
8+ from urllib .parse import urlparse , urlunparse
89
910import pytest
1011import requests
1112import responses
1213from semantic_version import Version
1314
14- from .skip import mark
15+ from .fixtures import DandiAPI
1516from .. import __version__
1617from ..consts import DandiInstance , known_instances
1718from ..exceptions import BadCliVersionError , CliVersionTooOldError
@@ -394,10 +395,10 @@ def test_get_instance_arbitrary_api_url() -> None:
394395 )
395396
396397
397- @ pytest . mark . xfail ( reason = "https://github.com/dandi/dandi-archive/issues/1045" )
398- @ mark . skipif_no_network
399- def test_server_info () -> None :
400- r = requests .get ("https://dandiarchive.org /server-info" )
398+ def test_server_info ( local_dandi_api : DandiAPI ) -> None :
399+ u = urlparse ( local_dandi_api . api_url )
400+ root_url = urlunparse ( u [: 2 ] + ( "" ,) * 4 )
401+ r = requests .get (f" { root_url } /server-info" )
401402 r .raise_for_status ()
402403 data = r .json ()
403404 assert "version" in data
You can’t perform that action at this time.
0 commit comments