@@ -566,7 +566,7 @@ def test_search(self):
566566 self .assertEqual (len (results ), 3 )
567567 # search should default to 'select' handler
568568 args , kwargs = self .solr ._send_request .call_args
569- self .assertTrue (args [1 ].startswith ("select/ ?" ))
569+ self .assertTrue (args [1 ].startswith ("select?" ))
570570
571571 results = self .solr .search ("example" )
572572 self .assertEqual (len (results ), 2 )
@@ -627,7 +627,7 @@ def test_more_like_this(self):
627627 self .assertEqual (len (results ), 0 )
628628 # more_like_this should default to 'mlt' handler
629629 args , kwargs = self .solr ._send_request .call_args
630- self .assertTrue (args [1 ].startswith ("mlt/ ?" ))
630+ self .assertTrue (args [1 ].startswith ("mlt?" ))
631631
632632 # more_like_this should support custom handlers
633633 with self .assertRaises (SolrError ):
@@ -655,7 +655,7 @@ def test_suggest_terms(self):
655655 )
656656 # suggest_terms should default to 'mlt' handler
657657 args , kwargs = self .solr ._send_request .call_args
658- self .assertTrue (args [1 ].startswith ("terms/ ?" ))
658+ self .assertTrue (args [1 ].startswith ("terms?" ))
659659
660660 # suggest_terms should support custom handlers
661661 with self .assertRaises (SolrError ):
@@ -732,7 +732,7 @@ def test_add(self):
732732 )
733733 # add should default to 'update' handler
734734 args , kwargs = self .solr ._send_request .call_args
735- self .assertTrue (args [1 ].startswith ("update/ ?" ))
735+ self .assertTrue (args [1 ].startswith ("update?" ))
736736
737737 self .assertEqual (len (self .solr .search ("doc" )), 5 )
738738 self .assertEqual (len (self .solr .search ("example" )), 3 )
@@ -848,7 +848,7 @@ def test_delete(self):
848848 self .solr .delete (id = "doc_1" , commit = True )
849849 # delete should default to 'update' handler
850850 args , kwargs = self .solr ._send_request .call_args
851- self .assertTrue (args [1 ].startswith ("update/ ?" ))
851+ self .assertTrue (args [1 ].startswith ("update?" ))
852852
853853 self .assertEqual (len (self .solr .search ("doc" )), 2 )
854854 self .assertEqual (len (self .solr .search ("type_s:parent" )), 2 )
@@ -915,7 +915,7 @@ def test_commit(self):
915915 self .solr .commit ()
916916 # commit should default to 'update' handler
917917 args , kwargs = self .solr ._send_request .call_args
918- self .assertTrue (args [1 ].startswith ("update/ ?" ))
918+ self .assertTrue (args [1 ].startswith ("update?" ))
919919 self .assertEqual (len (self .solr .search ("doc" )), 4 )
920920
921921 def test_can_handles_default_commit_policy (self ):
@@ -954,7 +954,7 @@ def test_optimize(self):
954954 self .solr .optimize ()
955955 # optimize should default to 'update' handler
956956 args , kwargs = self .solr ._send_request .call_args
957- self .assertTrue (args [1 ].startswith ("update/ ?" ))
957+ self .assertTrue (args [1 ].startswith ("update?" ))
958958 self .assertEqual (len (self .solr .search ("doc" )), 4 )
959959
960960 # optimize should support custom handlers
0 commit comments