From 7c222877934cd291130a30a1b56de51db73e3f0a Mon Sep 17 00:00:00 2001 From: TPTBusiness Date: Mon, 25 May 2026 19:43:03 +0200 Subject: [PATCH] fix: case-insensitive assertion in test_add_column_idempotent --- test/backtesting/test_results_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/backtesting/test_results_db.py b/test/backtesting/test_results_db.py index e49658d7..d98bfd54 100644 --- a/test/backtesting/test_results_db.py +++ b/test/backtesting/test_results_db.py @@ -1065,7 +1065,7 @@ class TestSchemaMigrationFuzzing: c = db.conn.cursor() c.execute("PRAGMA table_info(backtest_runs)") 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: db.close()