Skip to content

Commit 3736f93

Browse files
committed
Fix expected fields in config exception
1 parent 81e390f commit 3736f93

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

elt-common/tests/unit_tests/dlt_sources/test_m365.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def test_extract_sharepoint_source_raises_error_without_config(pipeline: dlt.Pip
2222

2323
config_exc = exc.value.exception
2424
assert isinstance(config_exc, ConfigFieldMissingException)
25-
for field in ("tenant_id", "client_id", "client_secret"):
26-
assert field in config_exc.fields
25+
assert "credentials" in config_exc.fields
2726

2827
# then other config
2928
with pytest.raises(PipelineStepFailed) as exc:

0 commit comments

Comments
 (0)