Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
girarda committed Oct 13, 2023
1 parent efbe226 commit 95b2945
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,23 @@
],
}
)
.set_validation_policies({FailingSchemaValidationPolicy.ALWAYS_FAIL: FailingSchemaValidationPolicy()})
.set_source_builder(
FileBasedSourceBuilder()
.set_files(
{
"a.csv": {
"contents": [
("col1", "col2"),
("val11", "val12"),
("val21", "val22"),
],
"last_modified": "2023-06-05T03:54:07.000Z",
}
}
)
.set_file_type("csv")
.set_validation_policies({FailingSchemaValidationPolicy.ALWAYS_FAIL: FailingSchemaValidationPolicy()})
)
.set_expected_check_error(None, FileBasedSourceError.ERROR_VALIDATING_RECORD.value)
).build()

Expand Down

0 comments on commit 95b2945

Please sign in to comment.