fix tests

This commit is contained in:
Matthew Broadway
2025-05-17 12:03:59 +01:00
parent b73145ebde
commit fa76f8a286
2 changed files with 10 additions and 3 deletions
+3
View File
@@ -195,10 +195,12 @@ def _extract_firefox_cookies(browser_name, profile, container, logger):
if cursor is not None:
cursor.connection.close()
@dataclass
class _FirefoxBrowserSettings:
browser_dirs: list[str]
def _firefox_based_browser_settings(browser_name):
if sys.platform in ('cygwin', 'win32'):
appdata = os.path.expandvars(R'%APPDATA%')
@@ -242,6 +244,7 @@ def _firefox_based_browser_settings(browser_name):
browser_dirs=browser_dirs,
)
def _firefox_cookie_dbs(roots):
for root in map(os.path.abspath, roots):
for pattern in ('', '*/', 'Profiles/*/'):