File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
services/web/server/tests/unit/with_dbs/03 Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -178,9 +178,15 @@ def _assert_project_db_row(
178178 }
179179 expected_db_entries .update (kwargs )
180180 assert row
181+ # Remove last_change_date from strict equality check
181182 project_entries_in_db = {k : row [k ] for k in expected_db_entries }
183+ project_last_change = project_entries_in_db .pop ("last_change_date" , None )
184+ expected_db_entries .pop ("last_change_date" , None )
182185 assert project_entries_in_db == expected_db_entries
183- assert row ["last_change_date" ] >= row ["creation_date" ]
186+ # last_change_date should be >= creation_date
187+ assert project_last_change is not None
188+ assert row ["creation_date" ] is not None
189+ assert project_last_change >= row ["creation_date" ]
184190
185191
186192@pytest .fixture
You can’t perform that action at this time.
0 commit comments