feat: add tests for parent tag search

This commit is contained in:
Jann Stute
2024-12-28 17:35:22 +01:00
parent e3f09ed17e
commit c051442adc

View File

@@ -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: :"]
)