This commit is contained in:
1 parent
2f39ee11df
commit
da30de0318
16 files changed
+142
-22
No files matched your search
@@ -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"})
|
||||
|
||||
Reference in new issue
Block a user