diff --git a/tests/integration/reports/multi_table/test_diagnostic_report.py b/tests/integration/reports/multi_table/test_diagnostic_report.py index 57ff4cc6..f006915c 100644 --- a/tests/integration/reports/multi_table/test_diagnostic_report.py +++ b/tests/integration/reports/multi_table/test_diagnostic_report.py @@ -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' @@ -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': [ @@ -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 )