@@ -100,8 +100,8 @@ class TestFileDeleteQuery:
100
100
101
101
mixed_case_query_test_params = [
102
102
(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'" ),
105
105
]
106
106
107
107
query_conditions_test_params = [
@@ -113,11 +113,11 @@ class TestFileDeleteQuery:
113
113
nested_conditions_test_params = [
114
114
(
115
115
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')"
117
117
),
118
118
(
119
119
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'"
121
121
),
122
122
(
123
123
3 , f"R DELETE FROM '{ FILE_DIR_TEST_DIRECTORY / 'reports' } ' WHERE"
@@ -183,8 +183,8 @@ class TestDirDeleteQuery:
183
183
184
184
mixed_case_query_test_params = [
185
185
(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')" ),
188
188
]
189
189
190
190
query_conditions_test_params = [
0 commit comments