Skip to content

Commit

Permalink
handle optional future state
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere committed Nov 7, 2022
1 parent afb73f7 commit b40e52f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit b40e52f

Please sign in to comment.