Skip to content

Commit c302189

Browse files
Update comments in test_search_query.py
1 parent c1cf0f5 commit c302189

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/test_query/test_search_query.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ class TestFileSearchQuery:
2929
f"RecURSive sELECt * From '{TEST_DIRECTORY}' wHErE FilETypE = '.py'",
3030
]
3131

32+
# Some of the test don't explicitly verify the extracted data as it is flexible and
33+
# subject to change depending on the system and path the tests are executed from.
34+
3235
@pytest.mark.parametrize("query", basic_query_syntax_params)
3336
def test_basic_query_syntax(self, query: str) -> None:
3437
"""Tests the basic file search query syntax."""
3538

36-
# This test doesn't explicitly verifies the extracted data as it is flexible
37-
# and subject to change depending on the system and path it's executed from.
38-
3939
data: pd.DataFrame = QueryHandler(query).handle()
4040
assert isinstance(data, pd.DataFrame)
4141

@@ -56,9 +56,6 @@ def test_individual_fields(self, field: str) -> None:
5656
def test_mixed_case_query(self, query: str) -> None:
5757
"""Tests file search queries comprising characters of mixed cases."""
5858

59-
# This test doesn't explicitly verifies the extracted data as it is flexible
60-
# and subject to change depending on the system and path it's executed from.
61-
6259
data: pd.DataFrame = QueryHandler(query).handle()
6360
assert isinstance(data, pd.DataFrame)
6461

@@ -72,13 +69,13 @@ class TestDirSearchQuery:
7269
f"RECURSIVE SELECT[TYPE DIR] * FROM '{TEST_DIRECTORY}' WHERE name in ('orders', 'reports')",
7370
]
7471

72+
# Some of the test don't explicitly verify the extracted data as it is flexible and
73+
# subject to change depending on the system and path the tests are executed from.
74+
7575
@pytest.mark.parametrize("query", basic_query_syntax_params)
7676
def test_basic_query_syntax(self, query: str) -> None:
7777
"""Tests the basic directory search query syntax."""
7878

79-
# This test doesn't explicitly verifies the extracted data as it is flexible
80-
# and subject to change depending on the system and path it's executed from.
81-
8279
data: pd.DataFrame = QueryHandler(query).handle()
8380
assert isinstance(data, pd.DataFrame)
8481

0 commit comments

Comments
 (0)