Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Nov 16, 2023
1 parent 1551d07 commit 52aa57c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 52aa57c

Please sign in to comment.