mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-19 15:57:13 +00:00
feat: add tests for parent tag search
This commit is contained in:
@@ -116,6 +116,20 @@ def test_parentheses(search_library: Library, query: str, count: int):
|
||||
verify_count(search_library, query, count)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
["query", "count"],
|
||||
[
|
||||
("ellipse", 17),
|
||||
("yellow", 15),
|
||||
("color", 24),
|
||||
("shape", 24),
|
||||
("yellow not green", 10),
|
||||
],
|
||||
)
|
||||
def test_parent_tags(search_library: Library, query: str, count: int):
|
||||
verify_count(search_library, query, count)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"invalid_query", ["asd AND", "asd AND AND", "tag:(", "(asd", "asd[]", "asd]", ":", "tag: :"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user