Skip to content

Commit

Permalink
testing metadata is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
amontanez24 committed Sep 12, 2024
1 parent cef7ec4 commit 987e583
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/metadata/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def test_detect_from_dataframes(self, mock_metadata):
data = {'guests': guests_table, 'hotels': hotels_table}

# Run
Metadata.detect_from_dataframes(data)
metadata = Metadata.detect_from_dataframes(data)

# Assert
mock_metadata.return_value.detect_table_from_dataframe.assert_any_call(
Expand All @@ -564,6 +564,7 @@ def test_detect_from_dataframes(self, mock_metadata):
'hotels', hotels_table
)
mock_metadata.return_value._detect_relationships.assert_called_once_with(data)
assert metadata == mock_metadata.return_value

def test_detect_from_dataframes_bad_input(self):
"""Test that an error is raised if the dictionary contains something other than DataFrames.
Expand Down

0 comments on commit 987e583

Please sign in to comment.