Skip to content

Commit

Permalink
CATs: fix control flow around setup/teardown config (#40635)
Browse files Browse the repository at this point in the history
  • Loading branch information
clnoll authored Jun 30, 2024
1 parent f54e4df commit dc0e4f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def connector_config_fixture(base_path, connector_config_path) -> SecretDict:
@pytest.fixture(name="setup_teardown_dockerfile_config")
def setup_teardown_dockerfile_config_fixture(inputs, base_path, acceptance_test_config) -> Optional[SetupTeardownConfig]:
"""Fixture with connector's setup/teardown Dockerfile path, if it exists."""
if hasattr(inputs, "setup_teardown_config"):
return getattr(inputs, "setup_teardown_config")
if hasattr(inputs, "setup_teardown_config") and inputs.setup_teardown_config:
return inputs.setup_teardown_config


@pytest.fixture(name="invalid_connector_config")
Expand Down

0 comments on commit dc0e4f8

Please sign in to comment.