style: ruff format two files the pre-commit hook caught
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
663bd74572
commit
3f7b97c8c7
2 changed files with 2 additions and 4 deletions
|
|
@ -18,9 +18,7 @@ import re
|
|||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
CA_CERT_PATH = Path(
|
||||
"/var/lib/caddy/.local/share/caddy/pki/authorities/local/root.crt"
|
||||
)
|
||||
CA_CERT_PATH = Path("/var/lib/caddy/.local/share/caddy/pki/authorities/local/root.crt")
|
||||
SNIPPET_DIR = Path("/etc/caddy/furtka.d")
|
||||
REDIRECT_SNIPPET = SNIPPET_DIR / "redirect.caddyfile"
|
||||
REDIRECT_CONTENT = "redir https://{host}{uri} permanent\n"
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ def test_caddyfile_exposes_root_ca_download():
|
|||
caddy = (ASSETS / "Caddyfile").read_text()
|
||||
assert "handle /rootCA.crt" in caddy
|
||||
assert "/var/lib/caddy/.local/share/caddy/pki/authorities/local" in caddy
|
||||
assert 'attachment; filename=furtka-local-rootCA.crt' in caddy
|
||||
assert "attachment; filename=furtka-local-rootCA.crt" in caddy
|
||||
|
||||
|
||||
def test_post_install_creates_furtka_d_snippet_dir(install_cmds):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue