mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
curl tests: more debug UX tweaks²
This commit is contained in:
parent
d3c49d3948
commit
53998f051d
1 changed files with 2 additions and 2 deletions
|
@ -189,8 +189,8 @@ def test(
|
||||||
)
|
)
|
||||||
|
|
||||||
assets = []
|
assets = []
|
||||||
# Auto-check assets - though skip this if we ended up with a 502 to prevent displaying warnings etc.
|
# Auto-check assets - though skip this if we have an unexpected return code for the main page, because there's very likely no asset to find
|
||||||
if auto_test_assets and not str(code).startswith("5"):
|
if auto_test_assets and code == expect_return_code:
|
||||||
assets_to_check = []
|
assets_to_check = []
|
||||||
stylesheets = html.find_all("link", rel="stylesheet", href=True)
|
stylesheets = html.find_all("link", rel="stylesheet", href=True)
|
||||||
stylesheets = [
|
stylesheets = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue