From 92bd73e77478b285486070f5581052467b683843 Mon Sep 17 00:00:00 2001 From: Jean Connelly Date: Thu, 22 Jan 2026 11:17:54 -0500 Subject: [PATCH 1/2] Skip custom scenario test if no internet --- kadi/commands/tests/test_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kadi/commands/tests/test_commands.py b/kadi/commands/tests/test_commands.py index 2ea4a654..fa1a043a 100644 --- a/kadi/commands/tests/test_commands.py +++ b/kadi/commands/tests/test_commands.py @@ -1227,6 +1227,7 @@ def test_flight_scenario_sheet_access(): commands.get_cmds("-7d") # fails, bad sheet URL +@pytest.mark.skipif(not HAS_INTERNET, reason="No internet connection") def test_custom_scenario(monkeypatch, stop_date_2024_035_23_00_00): """Test "custom" scenario with a carefully constructed sequence of events. From a4b8dea84a4180803b61ad47745f0cfee37d5c66 Mon Sep 17 00:00:00 2001 From: Jean Connelly Date: Thu, 22 Jan 2026 11:59:47 -0500 Subject: [PATCH 2/2] Also skip flight scenario test if no internet --- kadi/commands/tests/test_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kadi/commands/tests/test_commands.py b/kadi/commands/tests/test_commands.py index fa1a043a..fd96d9d9 100644 --- a/kadi/commands/tests/test_commands.py +++ b/kadi/commands/tests/test_commands.py @@ -1213,6 +1213,7 @@ def patched_read_cmd_events_from_sheet(doc_id): return evts +@pytest.mark.skipif(not HAS_INTERNET, reason="No internet connection") def test_flight_scenario_sheet_access(): """Test that flight scenario does not access the google command events sheet""" with kadi.commands.conf.set_temp("cmd_events_flight_id", "id-does-not-exist"):