mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-08 11:00:36 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
BIN
tests/fixtures/empty_libraries/DB_VERSION_9/.TagStudio/ts_library.sqlite
vendored
Normal file
BIN
tests/fixtures/empty_libraries/DB_VERSION_9/.TagStudio/ts_library.sqlite
vendored
Normal file
Binary file not shown.
Binary file not shown.
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user