T-585 Chrome 路径自动检测

This commit is contained in:
chengma
2026-07-10 16:19:01 +08:00
parent 8daaf7f4af
commit 7e491ed10e
11 changed files with 441 additions and 7 deletions
+1
View File
@@ -18,6 +18,7 @@ class AppConfigTests(TempDirMixin, unittest.TestCase):
config = appconfig.load_config(config_path)
self.assertTrue(os.path.exists(config_path))
self.assertEqual("", config["chrome_path"])
self.assertEqual(os.path.join(temp_dir, "images"), appconfig.image_dir(config))
self.assertEqual(os.path.join(temp_dir, "chrome_user_data_dir"), appconfig.user_data_root(config))
self.assertEqual(os.path.join(temp_dir, "cmshopee.db"), appconfig.db_path(config))