From b40e52f2e8d0120bf7387e1cff5d2820b19ba52e Mon Sep 17 00:00:00 2001 From: alafanechere Date: Tue, 8 Nov 2022 00:46:56 +0100 Subject: [PATCH] handle optional future state --- .../source_acceptance_test/tests/test_incremental.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/test_incremental.py b/airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/test_incremental.py index 3a6281768951..219bfc70e55f 100644 --- a/airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/test_incremental.py +++ b/airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/test_incremental.py @@ -18,7 +18,7 @@ @pytest.fixture(name="future_state_configuration") def future_state_configuration_fixture(inputs, base_path, test_strictness_level) -> Tuple[Path, List[EmptyStreamConfiguration]]: """Fixture with connector's future state path (relative to base_path)""" - if inputs.future_state.future_state_path: + if inputs.future_state and inputs.future_state.future_state_path: return Path(base_path) / inputs.future_state.future_state_path, inputs.future_state.missing_streams elif test_strictness_level is Config.TestStrictnessLevel.high: pytest.fail("High test strictness level error: a future state configuration must be provided in high test strictness level.")