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())