mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-04-01 05:42:43 +00:00
Updates fixture for sonar
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import shutil
|
||||
import zoneinfo
|
||||
from collections.abc import Generator
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING
|
||||
@@ -93,7 +94,10 @@ def sample_doc(
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def _search_index(tmp_path: Path, settings: SettingsWrapper) -> None:
|
||||
def _search_index(
|
||||
tmp_path: Path,
|
||||
settings: SettingsWrapper,
|
||||
) -> Generator[None, None, None]:
|
||||
"""Create a temp index directory and point INDEX_DIR at it.
|
||||
|
||||
Resets the backend singleton before and after so each test gets a clean
|
||||
|
||||
Reference in New Issue
Block a user