feat: add filename and path sorting (#842)

* feat: add filename sorting to dropdown

* feat: add file path sorting to dropdown

* feat: implement path sorting

* feat: add filename column and bump db version

* feat: implement filename sorting

* doc: tick off roadmap item for filename sorting

* fix: use existing filename translation instead

* fix: populate Entry.filename in constructor

* fix: add missing assertion in search_library fixture

* fix: update search test library

* feat: add db migration test

* fix: add missing library for test
This commit is contained in:
Jann Stute
2025-03-13 01:28:42 +01:00
committed by GitHub
parent 93dcfdd51c
commit 31833245a4
11 changed files with 54 additions and 4 deletions

View File

@@ -114,7 +114,8 @@ def library(request):
@pytest.fixture
def search_library() -> Library:
lib = Library()
lib.open_library(Path(CWD / "fixtures" / "search_library"))
status = lib.open_library(Path(CWD / "fixtures" / "search_library"))
assert status.success
return lib

View File

@@ -22,6 +22,7 @@ EMPTY_LIBRARIES = "empty_libraries"
str(Path(CWD.parent / FIXTURES / EMPTY_LIBRARIES / "DB_VERSION_6")),
str(Path(CWD.parent / FIXTURES / EMPTY_LIBRARIES / "DB_VERSION_7")),
str(Path(CWD.parent / FIXTURES / EMPTY_LIBRARIES / "DB_VERSION_8")),
str(Path(CWD.parent / FIXTURES / EMPTY_LIBRARIES / "DB_VERSION_9")),
],
)
def test_library_migrations(path: str):