Fix formatting
All checks were successful
CI / build (push) Successful in 1m3s
CI / deploy (docs-ops.qo.is) (push) Successful in 1m6s
CI / deploy (system-vm) (push) Successful in 1m42s
CI / deploy (system-physical) (push) Successful in 5m24s

This commit is contained in:
Fabian Hauser 2025-06-26 00:07:30 +03:00
parent e76a4f04cc
commit afc2be57f5

View file

@ -14,9 +14,9 @@ def test(subtest, webserver):
value = node.succeed( value = node.succeed(
f"curl -s --no-location -o /dev/null -w '%{{{variable}}}' '{url}'" f"curl -s --no-location -o /dev/null -w '%{{{variable}}}' '{url}'"
) )
assert value == expected, ( assert (
f"expected {variable} to be '{expected}' but got '{value}'" value == expected
) ), f"expected {variable} to be '{expected}' but got '{value}'"
def expect_http_code(node, code, url): def expect_http_code(node, code, url):
curl_variable_test(node, "http_code", code, url) curl_variable_test(node, "http_code", code, url)