Skip to content

Commit

Permalink
assert_called_once
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Nov 2, 2023
1 parent d0dc937 commit 7522d31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdmetrics/reports/multi_table/_properties/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
'InterTableTrends',
'Synthesis',
'Structure',
'DataValidity'
'DataValidity',
'RelationshipValidity',
]
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_get_score(

assert score == 0.5
progress_bar.update.assert_called()
assert progress_bar.update.call_count == 1
progress_bar.update.assert_called_once()
mock_compute_average.assert_called_once()
pd.testing.assert_frame_equal(relationship_validity.details, expected_details_property)

Expand Down Expand Up @@ -218,7 +218,7 @@ def test_get_score_raises_errors(
assert pd.isna(score)
pd.testing.assert_frame_equal(relationship_validity.details, expected_details_property)
progress_bar.update.assert_called()
assert progress_bar.update.call_count == 1
progress_bar.update.assert_called_once()

def test_get_details_with_table_name(self):
"""Test the ``get_details`` method.
Expand Down

0 comments on commit 7522d31

Please sign in to comment.