File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/integration/multi_table Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2847,12 +2847,12 @@ def test_datetime_warning_doesnt_repeat():
28472847 comp_synth .sample (1 )
28482848
28492849 # Assert
2850- assert len (w ) == 1
28512850 msg = (
28522851 "No 'datetime_format' is present in the metadata for the following columns:\n "
28532852 ' Table Name Column Name sdtype datetime_format\n '
28542853 ' main denormalized_column datetime None\n '
28552854 'Without this specification, SDV may not be able to accurately parse the data. '
28562855 "We recommend adding datetime formats using 'update_column'."
28572856 )
2858- assert str (w [0 ].message ) == msg
2857+ matching_warnings = [warning for warning in w if str (warning .message ) == msg ]
2858+ assert len (matching_warnings ) == 1
You can’t perform that action at this time.
0 commit comments