File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from ydata_profiling .controller import console
66from ydata_profiling .utils .paths import get_config
77
8+ import requests
9+
10+ NASA_URL = "https://data.nasa.gov/docs/legacy/meteorite_landings/Meteorite_Landings.csv"
811
912@pytest .fixture
1013def console_data (get_data_file ):
11- return get_data_file (
12- "meteorites.csv" ,
13- "https://data.nasa.gov/docs/legacy/meteorite_landings/Meteorite_Landings.csv" ,
14- )
15-
14+ try :
15+ return get_data_file ("meteorites.csv" , NASA_URL )
16+ except requests .RequestException as e :
17+ pytest .skip (f"Skipping console tests: NASA dataset unavailable ({ e } )" )
18+ except Exception as e :
19+ pytest .skip (f"Skipping console tests: cannot fetch meteorites.csv ({ e } )" )
1620
1721@pytest .mark .skipif (os .name == "nt" , reason = "multiprocessing+pytest broken on Windows" )
1822def test_console_multiprocessing (console_data , test_output_dir ):
You can’t perform that action at this time.
0 commit comments