apply black to the whole codebase.

This commit is contained in:
Goffi 2026-03-09 09:22:04 +01:00
commit 82e2c6efac
5 changed files with 175 additions and 448 deletions

View file

@ -80,8 +80,7 @@ class Editor:
self.editor_path = self.tmp_dir_path / "editor.py"
self.ori_content_path = self.tmp_dir_path / "original_content"
self.new_content_path = self.tmp_dir_path / "new_content"
self.base_script = dedent(
f"""\
self.base_script = dedent(f"""\
#!{sys.executable}
import sys
@ -100,8 +99,7 @@ class Editor:
with open("{self.new_content_path}", "w") as f:
f.write(new_content)
"""
)
""")
self._env = os.environ.copy()
self._env["EDITOR"] = str(self.editor_path)

View file

@ -30,7 +30,6 @@ from libervia.backend.plugins.plugin_sec_pte import NS_PTE
from libervia.backend.plugins.plugin_xep_0277 import NS_ATOM
from libervia.backend.tools.common import uri
if os.getenv("LIBERVIA_TEST_ENV_E2E") is None:
pytest.skip(
"skipping end-to-end tests, we are not in a test environment",

View file

@ -25,7 +25,6 @@ from datetime import datetime
from pathlib import Path
import helium
WEB_HOST = "web"
WEB_PORT_HTTPS = 8443
BASE_URL = f"https://{WEB_HOST}:{WEB_PORT_HTTPS}"

View file

@ -40,7 +40,6 @@ from helium import (
)
from selenium.webdriver.common.by import By
if os.getenv("LIBERVIA_TEST_ENV_E2E_WEB") is None:
pytest.skip(
"skipping end-to-end tests, we are not in a test environment for Libervia",

View file

@ -44,8 +44,7 @@ OPT_KEEP_BROWSER = "--keep-browser"
OPT_VISUAL = "--visual"
OPT_DEV_MODE = "--dev-mode"
dev_mode_inst = dedent(
"""\
dev_mode_inst = dedent("""\
Here is a short script to start working with a logged account:
from helium import *
@ -54,8 +53,7 @@ dev_mode_inst = dedent(
write("account1", "login")
write("test", "password")
click("log in")
"""
)
""")
report_buffer = io.StringIO()
live_out_buf = []
live_err_buf = []
@ -186,8 +184,7 @@ def use_e2e_env():
with tempfile.TemporaryDirectory(prefix="libervia_test_e2e_") as temp_dir:
override_path = Path(temp_dir) / "test_override.yml"
override = yaml.load(
dedent(
f"""\
dedent(f"""\
version: "3.6"
services:
backend:
@ -210,8 +207,7 @@ def use_e2e_env():
source: {libervia_templates_source}
target: {libervia_templates_target}
read_only: true
"""
),
"""),
Loader=Loader,
)