Skip to content

Commit c837745

Browse files
committed
skip if no creds
1 parent a19b5c1 commit c837745

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unit_tests/source_declarative_manifest/test_source_declarative_w_custom_components.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from tempfile import NamedTemporaryFile
1313
from typing import Any
1414

15+
import pytest
1516
import yaml
1617
from airbyte_protocol_dataclasses.models.airbyte_protocol import AirbyteCatalog
1718

@@ -85,6 +86,10 @@ def get_py_components_config_dict() -> dict[str, Any]:
8586
return combined_config_dict
8687

8788

89+
@pytest.mark.skipif(
90+
condition=not Path(get_fixture_path("resources/source_the_guardian_api/secrets.yaml")).exists(),
91+
reason="Skipped due to missing 'secrets.yaml'.",
92+
)
8893
def test_given_injected_declarative_manifest_and_py_components() -> None:
8994
py_components_config_dict = get_py_components_config_dict()
9095
# Truncate the start_date to speed up tests

0 commit comments

Comments
 (0)