diff --git a/tagstudio/tests/test_search.py b/tagstudio/tests/test_search.py index 7d2e69db..9f3754b4 100644 --- a/tagstudio/tests/test_search.py +++ b/tagstudio/tests/test_search.py @@ -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: :"] )