From 818dfa7c6dcf34c2b9d0c81f29c83c71c811f32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Wed, 19 Jun 2024 17:11:59 +0200 Subject: [PATCH] ci: skip test run_flow_from_json_object (#2227) ci: skip test test_run_flow_from_json_object --- tests/unit/conftest.py | 2 ++ tests/unit/test_loading.py | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 17ebc20e1..355cd5d2d 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -35,6 +35,8 @@ load_dotenv() def pytest_configure(config): config.addinivalue_line("markers", "noclient: don't create a client for this test") + config.addinivalue_line("markers", "load_flows: load the flows for this test") + config.addinivalue_line("markers", "api_key_required: run only if the api key is set in the environment variables") data_path = Path(__file__).parent.parent.absolute() / "data" pytest.BASIC_EXAMPLE_PATH = data_path / "basic_example.json" diff --git a/tests/unit/test_loading.py b/tests/unit/test_loading.py index 5872d060f..a3138f22c 100644 --- a/tests/unit/test_loading.py +++ b/tests/unit/test_loading.py @@ -33,6 +33,7 @@ def test_load_flow_from_json_object(): @pytest.mark.noclient +@pytest.mark.api_key_required def test_run_flow_from_json_object(): """Test loading a flow from a json file and applying tweaks""" _, projects = zip(*load_starter_projects())