Skip to content

Commit 19bd9b7

Browse files
committed
Stop checking warning count
1 parent f1a4536 commit 19bd9b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/multi_table/test_hma.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)