Fixed imports
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user