fix: case-insensitive assertion in test_add_column_idempotent

This commit is contained in:
TPTBusiness
2026-05-25 19:43:03 +02:00
parent 3874afb8dd
commit 7c22287793
+1 -1
View File
@@ -1065,7 +1065,7 @@ class TestSchemaMigrationFuzzing:
c = db.conn.cursor() c = db.conn.cursor()
c.execute("PRAGMA table_info(backtest_runs)") c.execute("PRAGMA table_info(backtest_runs)")
cols = [row[1] for row in c.fetchall()] cols = [row[1] for row in c.fetchall()]
assert cols.count(col_name) == 1 assert sum(1 for c in cols if c.lower() == col_name.lower()) == 1
finally: finally:
db.close() db.close()