@@ -252,15 +252,7 @@ def test_basic_reordering(self):
252252
253253 assert field .args_suffix == ["INDEXMISSING" , "SORTABLE" ]
254254
255- def test_preserves_unknown_modifiers (self ):
256- """Test that unknown modifiers are preserved at the start."""
257- field = RedisTextField ("test" )
258- field .args_suffix = ["CUSTOM" , "SORTABLE" , "INDEXMISSING" ]
259- canonical_order = ["INDEXMISSING" , "SORTABLE" ]
260-
261- _normalize_field_modifiers (field , canonical_order )
262255
263- assert field .args_suffix == ["CUSTOM" , "INDEXMISSING" , "SORTABLE" ]
264256
265257 def test_unf_added_with_sortable (self ):
266258 """Test that UNF is added when want_unf=True and SORTABLE is present."""
@@ -318,25 +310,7 @@ def test_empty_suffix(self):
318310
319311 assert field .args_suffix == []
320312
321- def test_only_unknown_modifiers (self ):
322- """Test with only unknown modifiers."""
323- field = RedisTextField ("test" )
324- field .args_suffix = ["CUSTOM1" , "CUSTOM2" ]
325- canonical_order = ["INDEXMISSING" , "SORTABLE" ]
326-
327- _normalize_field_modifiers (field , canonical_order )
328-
329- assert field .args_suffix == ["CUSTOM1" , "CUSTOM2" ]
330-
331- def test_multiple_unknown_modifiers_preserved_order (self ):
332- """Test that multiple unknown modifiers preserve their original order."""
333- field = RedisTextField ("test" )
334- field .args_suffix = ["CUSTOM1" , "SORTABLE" , "CUSTOM2" , "INDEXMISSING" ]
335- canonical_order = ["INDEXMISSING" , "SORTABLE" ]
336-
337- _normalize_field_modifiers (field , canonical_order )
338313
339- assert field .args_suffix == ["CUSTOM1" , "CUSTOM2" , "INDEXMISSING" , "SORTABLE" ]
340314
341315
342316class TestMLPCommandsScenario :
0 commit comments