Skip to content

Commit

Permalink
Fix test_parsers.py
Browse files Browse the repository at this point in the history
Minor fixes and redundant code removals in test_parsers.py
  • Loading branch information
rahul4732saini committed Jul 14, 2024
1 parent 3dcea98 commit 6aa8b0d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/test_query/test_handlers/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@

from fise.common import tools, constants
from fise.query.parsers import FileQueryParser
from fise.shared import Field, SearchQuery
from fise.shared import SearchQuery


class TestFileQueryParser:
"""Tests the FileQueryParser class"""

file_fields = [Field(field) for field in constants.FILE_FIELDS]

file_search_query_test_params = [
"* FROM .",
"name, path, parent FROM ABSOLUTE '.'",
Expand All @@ -43,10 +41,8 @@ class TestFileQueryParser:
("subquery", "results"),
zip(file_search_query_test_params, file_search_query_test_results),
)
def test_file_search_query_parser(self, subquery, results):
"""
Tests the file query parser with search queries.
"""
def test_file_search_query_parser(self, subquery, results) -> None:
"""Tests the file query parser with search queries."""

query: list[str] = tools.parse_query(subquery)

Expand Down

0 comments on commit 6aa8b0d

Please sign in to comment.