This commit is contained in:
1 parent
b865a4a389
commit
d07dec5e75
19 files changed
+258
-23
No files matched your search
@@ -68,6 +68,8 @@ class SchemaVersionTests(unittest.TestCase):
|
||||
self.assertIn("reco_feedback", tables)
|
||||
self.assertIn("game_fts", tables)
|
||||
self.assertIn("estimated_hours", self._columns(con, "games"))
|
||||
self.assertIn("hltb_main", self._columns(con, "games"))
|
||||
self.assertIn("hltb_complete", self._columns(con, "games"))
|
||||
|
||||
def test_legacy_database_is_migrated_and_data_preserved(self):
|
||||
con = sqlite3.connect(self.path)
|
||||
@@ -89,6 +91,8 @@ class SchemaVersionTests(unittest.TestCase):
|
||||
self.assertEqual(details["short_description"], "Old description")
|
||||
self.assertIsNone(details["source_appid"])
|
||||
self.assertIn("estimated_hours", self._columns(con, "games"))
|
||||
self.assertIn("hltb_main", self._columns(con, "games"))
|
||||
self.assertIn("hltb_complete", 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