Skip to content

Commit

Permalink
integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Sep 19, 2024
1 parent 91e3632 commit fddc7ce
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_end_to_end_with_metrics_failing(self):
"""Test the ``DiagnosticReport`` report when some metrics crash.
This test makes fail the 'Boundary' property to check that the report still works.
The TableStructure should no longer be 1.0 since there is some dtype mismatch.
"""
real_data, synthetic_data, metadata = load_demo(modality='multi_table')
real_data['users']['age'].iloc[0] = 'error_1'
Expand All @@ -62,7 +63,7 @@ def test_end_to_end_with_metrics_failing(self):
# Assert
expected_properties = pd.DataFrame({
'Property': ['Data Validity', 'Data Structure', 'Relationship Validity'],
'Score': [1.0, 1.0, 1.0],
'Score': [1.0, 0.6761904761904761, 1.0],
})
expected_details = pd.DataFrame({
'Table': [
Expand Down Expand Up @@ -119,7 +120,7 @@ def test_end_to_end_with_metrics_failing(self):
None,
],
})
assert results == 1.0
assert results == 0.892063492063492
pd.testing.assert_frame_equal(
report.get_properties(), expected_properties, check_exact=False, atol=2e-2
)
Expand Down

0 comments on commit fddc7ce

Please sign in to comment.