@@ -566,7 +566,7 @@ def test_search(self):
566
566
self .assertEqual (len (results ), 3 )
567
567
# search should default to 'select' handler
568
568
args , kwargs = self .solr ._send_request .call_args
569
- self .assertTrue (args [1 ].startswith ("select/ ?" ))
569
+ self .assertTrue (args [1 ].startswith ("select?" ))
570
570
571
571
results = self .solr .search ("example" )
572
572
self .assertEqual (len (results ), 2 )
@@ -627,7 +627,7 @@ def test_more_like_this(self):
627
627
self .assertEqual (len (results ), 0 )
628
628
# more_like_this should default to 'mlt' handler
629
629
args , kwargs = self .solr ._send_request .call_args
630
- self .assertTrue (args [1 ].startswith ("mlt/ ?" ))
630
+ self .assertTrue (args [1 ].startswith ("mlt?" ))
631
631
632
632
# more_like_this should support custom handlers
633
633
with self .assertRaises (SolrError ):
@@ -655,7 +655,7 @@ def test_suggest_terms(self):
655
655
)
656
656
# suggest_terms should default to 'mlt' handler
657
657
args , kwargs = self .solr ._send_request .call_args
658
- self .assertTrue (args [1 ].startswith ("terms/ ?" ))
658
+ self .assertTrue (args [1 ].startswith ("terms?" ))
659
659
660
660
# suggest_terms should support custom handlers
661
661
with self .assertRaises (SolrError ):
@@ -732,7 +732,7 @@ def test_add(self):
732
732
)
733
733
# add should default to 'update' handler
734
734
args , kwargs = self .solr ._send_request .call_args
735
- self .assertTrue (args [1 ].startswith ("update/ ?" ))
735
+ self .assertTrue (args [1 ].startswith ("update?" ))
736
736
737
737
self .assertEqual (len (self .solr .search ("doc" )), 5 )
738
738
self .assertEqual (len (self .solr .search ("example" )), 3 )
@@ -848,7 +848,7 @@ def test_delete(self):
848
848
self .solr .delete (id = "doc_1" , commit = True )
849
849
# delete should default to 'update' handler
850
850
args , kwargs = self .solr ._send_request .call_args
851
- self .assertTrue (args [1 ].startswith ("update/ ?" ))
851
+ self .assertTrue (args [1 ].startswith ("update?" ))
852
852
853
853
self .assertEqual (len (self .solr .search ("doc" )), 2 )
854
854
self .assertEqual (len (self .solr .search ("type_s:parent" )), 2 )
@@ -915,7 +915,7 @@ def test_commit(self):
915
915
self .solr .commit ()
916
916
# commit should default to 'update' handler
917
917
args , kwargs = self .solr ._send_request .call_args
918
- self .assertTrue (args [1 ].startswith ("update/ ?" ))
918
+ self .assertTrue (args [1 ].startswith ("update?" ))
919
919
self .assertEqual (len (self .solr .search ("doc" )), 4 )
920
920
921
921
def test_can_handles_default_commit_policy (self ):
@@ -954,7 +954,7 @@ def test_optimize(self):
954
954
self .solr .optimize ()
955
955
# optimize should default to 'update' handler
956
956
args , kwargs = self .solr ._send_request .call_args
957
- self .assertTrue (args [1 ].startswith ("update/ ?" ))
957
+ self .assertTrue (args [1 ].startswith ("update?" ))
958
958
self .assertEqual (len (self .solr .search ("doc" )), 4 )
959
959
960
960
# optimize should support custom handlers
0 commit comments