Skip to content

Commit de44b99

Browse files
Use table variable in updated_at migration static test
1 parent 5aae157 commit de44b99

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

quantara/web_app/tests/test_updated_at_triggers_static.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ def test_core_audit_models_have_updated_at_columns():
1919

2020

2121
def test_migration_adds_missing_updated_at_columns():
22+
assert 'for table_name in ("user", "position", "airdrop"):' in MIGRATION
2223
for table_name in ("user", "position", "airdrop"):
2324
assert f'op.add_column(\n table_name,' in MIGRATION
24-
assert f'for table_name in ("user", "position", "airdrop"):' in MIGRATION
25+
assert table_name in MIGRATION
2526
assert 'op.drop_column(table_name, "updated_at")' in MIGRATION
2627

2728

0 commit comments

Comments
 (0)