From 52aa57ce4c13718dd0cd2d6b2b350059d05d6bf7 Mon Sep 17 00:00:00 2001 From: R-Palazzo Date: Thu, 16 Nov 2023 15:25:44 -0600 Subject: [PATCH] update test --- .../reports/multi_table/test_diagnostic_report.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/reports/multi_table/test_diagnostic_report.py b/tests/integration/reports/multi_table/test_diagnostic_report.py index 986075a9..7c5f269d 100644 --- a/tests/integration/reports/multi_table/test_diagnostic_report.py +++ b/tests/integration/reports/multi_table/test_diagnostic_report.py @@ -172,13 +172,12 @@ def test_get_details_with_table_name(self): pd.testing.assert_frame_equal(details, expected_dataframe) + @pytest.mark.filterwarnings('error::UserWarning') def test_metadata_without_relationship(self): - """Test that no warning is raised when the metadata does not contain relationships.""" # Setup real_data, synthetic_data, metadata = load_demo(modality='multi_table') del metadata['relationships'] report = DiagnosticReport() # Run and Assert - with pytest.warns(None): - report.generate(real_data, synthetic_data, metadata) + report.generate(real_data, synthetic_data, metadata)