Skip to content

Commit 01ed018

Browse files
Fix test_delete_query.py
Minor fixes in test queries in test_delete_query.py
1 parent c1c6641 commit 01ed018

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_query/test_delete_query.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ class TestFileDeleteQuery:
100100

101101
mixed_case_query_test_params = [
102102
(1, f"DeLeTE FRoM '{FILE_DIR_TEST_DIRECTORY / 'project'}'"),
103-
(2, f"DelETE[TYPE FiLE] FrOM '{FILE_DIR_TEST_DIRECTORY / 'media'}' Where type = '.mp3'"),
104-
(3, rf"r dELETe FrOM '{FILE_DIR_TEST_DIRECTORY / 'project'}' wHERe name liKe '.*\.py'"),
103+
(2, f"DelETE[TYPE FiLE] FrOM '{FILE_DIR_TEST_DIRECTORY / 'media'}' Where TypE = '.mp3'"),
104+
(3, rf"r dELETe FrOM '{FILE_DIR_TEST_DIRECTORY / 'project'}' wHERe NaMe liKe '.*\.py'"),
105105
]
106106

107107
query_conditions_test_params = [
@@ -113,11 +113,11 @@ class TestFileDeleteQuery:
113113
nested_conditions_test_params = [
114114
(
115115
1, f"R DELETE FROM '{FILE_DIR_TEST_DIRECTORY}' WHERE "
116-
"size[b] = 0 AND (filetype = '.txt' or type = '.mp3')"
116+
"size[b] = 0 AND (filetype = '.txt' OR type = '.mp3')"
117117
),
118118
(
119119
2, f"R DELETE FROM '{FILE_DIR_TEST_DIRECTORY / 'project'}' WHERE size[b]"
120-
"= 0 AND (type = None OR (type in ('.txt', '.py'))) AND name != 'LICENSE'"
120+
"= 0 AND (type = None OR (type IN ('.txt', '.py'))) AND name != 'LICENSE'"
121121
),
122122
(
123123
3, f"R DELETE FROM '{FILE_DIR_TEST_DIRECTORY / 'reports'}' WHERE"
@@ -183,8 +183,8 @@ class TestDirDeleteQuery:
183183

184184
mixed_case_query_test_params = [
185185
(1, f"DeLEtE[TYPe DIR] froM '{FILE_DIR_TEST_DIRECTORY / 'docs'}'"),
186-
(2, f"DElEtE[tYPE DiR] From '{FILE_DIR_TEST_DIRECTORY / 'reports'}' Where name LikE '^report.*$'"),
187-
(3, f"Delete[Type diR] FroM '{FILE_DIR_TEST_DIRECTORY}' WheRE name In ('project', 'media')"),
186+
(2, f"DElEtE[tYPE DiR] From '{FILE_DIR_TEST_DIRECTORY / 'reports'}' Where NamE LikE '^report.*$'"),
187+
(3, f"Delete[Type diR] FroM '{FILE_DIR_TEST_DIRECTORY}' WheRE NAMe In ('project', 'media')"),
188188
]
189189

190190
query_conditions_test_params = [

0 commit comments

Comments
 (0)