feat: add HLTB controls and check markers
CI / test (push) Successful in 5m39s

This commit is contained in:
strsv committed 2026-11-06 22:39:33 +03:00
1 parent 2f39ee11df
commit da30de0318
16 files changed
+142 -22

No files matched your search

+4
View File
@@ -70,6 +70,8 @@ class SchemaVersionTests(unittest.TestCase):
self.assertIn("estimated_hours", self._columns(con, "games"))
self.assertIn("hltb_main", self._columns(con, "games"))
self.assertIn("hltb_complete", self._columns(con, "games"))
self.assertIn("hltb_checked_at", self._columns(con, "games"))
self.assertIn("hltb_match", self._columns(con, "games"))
def test_legacy_database_is_migrated_and_data_preserved(self):
con = sqlite3.connect(self.path)
@@ -93,6 +95,8 @@ class SchemaVersionTests(unittest.TestCase):
self.assertIn("estimated_hours", self._columns(con, "games"))
self.assertIn("hltb_main", self._columns(con, "games"))
self.assertIn("hltb_complete", self._columns(con, "games"))
self.assertIn("hltb_checked_at", self._columns(con, "games"))
self.assertIn("hltb_match", self._columns(con, "games"))
fts_tables = {r[0] for r in con.execute(
"SELECT name FROM sqlite_master WHERE name='game_fts'")}
self.assertEqual(fts_tables, {"game_fts"})