Fixed imports

This commit is contained in:
Max Berger
2026-03-26 21:35:12 +01:00
parent bde188ff55
commit 99f8780463
10 changed files with 41 additions and 84 deletions

View File

@@ -24,14 +24,9 @@ from typing import Any, Generator
import pytest
from playwright.sync_api import BrowserContext, Page, expect
from integ_tests.common import (
NOSHARE_HTPASSWD,
SHARING_HTPASSWD,
SHARING_XREMOTE,
Config,
login,
start_radicale_server,
)
from integ_tests.common import (NOSHARE_HTPASSWD, SHARING_HTPASSWD,
SHARING_XREMOTE, Config, login,
start_radicale_server)
@pytest.fixture
@@ -41,7 +36,9 @@ def radicale_server(
yield from start_radicale_server(tmp_path, config)
@pytest.mark.parametrize("config", [SHARING_HTPASSWD, SHARING_XREMOTE, NOSHARE_HTPASSWD])
@pytest.mark.parametrize(
"config", [SHARING_HTPASSWD, SHARING_XREMOTE, NOSHARE_HTPASSWD]
)
def test_index_html_loads(page: Page, radicale_server: str, config: Config) -> None:
"""Test that the index.html loads from the server."""
console_msgs: list[str] = []
@@ -53,7 +50,9 @@ def test_index_html_loads(page: Page, radicale_server: str, config: Config) -> N
assert len(errors) == 0
@pytest.mark.parametrize("config", [SHARING_HTPASSWD, SHARING_XREMOTE, NOSHARE_HTPASSWD])
@pytest.mark.parametrize(
"config", [SHARING_HTPASSWD, SHARING_XREMOTE, NOSHARE_HTPASSWD]
)
def test_user_login_works(
context: BrowserContext, page: Page, radicale_server: str, config: Config
) -> None: