Fixed flaky tests to check cookies (#1965)

This commit is contained in:
Soxoj
2024-12-13 12:37:58 +01:00
committed by GitHub
parent f113c3d21a
commit c4af0a4df0
7 changed files with 213 additions and 179 deletions
+2
View File
@@ -564,8 +564,10 @@ class MaigretDatabase:
site_with_probing = []
site_with_activation = []
for site in sites_dict.values():
def get_site_label(site):
return f"{site.name}{' (disabled)' if site.disabled else ''}"
if site.url_probe:
site_with_probing.append(get_site_label(site))
if site.activation:
+6 -2
View File
@@ -453,7 +453,9 @@ class Submitter:
# Check if the site check is ordinary or not
if old_site and (old_site.url_probe or old_site.activation):
skip = input(f"{Fore.RED}[!] The site check depends on activation / probing mechanism! Consider to update it manually. Continue? [yN]{Style.RESET_ALL}")
skip = input(
f"{Fore.RED}[!] The site check depends on activation / probing mechanism! Consider to update it manually. Continue? [yN]{Style.RESET_ALL}"
)
if skip.lower() in ['n', '']:
return False
@@ -604,7 +606,9 @@ class Submitter:
if old_site:
default_tags_str = f' [{", ".join(old_site.tags)}]'
new_tags = input(f"{Fore.GREEN}[?] Site tags{default_tags_str}: {Style.RESET_ALL}")
new_tags = input(
f"{Fore.GREEN}[?] Site tags{default_tags_str}: {Style.RESET_ALL}"
)
if new_tags:
chosen_site.tags = list(map(str.strip, new_tags.split(',')))
else: