Skip to content

Commit

Permalink
add more specific messages to test
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Dec 5, 2024
1 parent c753348 commit e7f4f94
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/test_gx.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,18 @@ def test_set_warnings_and_failures_changes_attributes_if_there_are_warnings_and_
):
self.good_runner.set_warnings_and_failures(self.failed_checkpoint_result)
assert self.good_runner.warnings is True
assert self.good_runner.warning_message is not None
assert (
self.good_runner.warning_message
== "Great Expectations data validation has the following warnings: "
"In the metabolomics dataset, 'ensembl_gene_id' has failed values for "
"expectations expect_column_value_lengths_to_equal"
)
assert self.good_runner.failures is True
assert self.good_runner.failure_message is not None
assert self.good_runner.failure_message == (
"Great Expectations data validation has the following failures: "
"In the metabolomics dataset, 'ensembl_gene_id' has failed values for "
"expectations expect_column_values_to_match_regex"
)

def test_run_when_expectation_suite_exists_and_nested_columns(
self,
Expand Down

0 comments on commit e7f4f94

Please sign in to comment.