diff --git a/tests/unit/reports/test_base_report.py b/tests/unit/reports/test_base_report.py index e7819392..3a82d7f9 100644 --- a/tests/unit/reports/test_base_report.py +++ b/tests/unit/reports/test_base_report.py @@ -232,7 +232,10 @@ def test_generate_metadata_not_dict(self): metadata = 'metadata' # Run and Assert - expected_message = 'The provided metadata is not a dictionary.' + expected_message = ( + "Expected a dictionary but received a 'str' instead. For SDV metadata objects, " + "please use the 'to_dict' function to convert it to a dictionary." + ) with pytest.raises(TypeError, match=expected_message): base_report.generate(real_data, synthetic_data, metadata, verbose=False)