@@ -185,7 +185,7 @@ def test_raises(self, finder):
185
185
request = MockRequest ("http://petstore.swagger.io" , "get" , request_uri )
186
186
187
187
with pytest .raises (ServerNotFound ):
188
- finder .find (request )
188
+ finder .find (request . method , request . full_url_pattern )
189
189
190
190
191
191
class BaseTestOperationNotFound :
@@ -198,7 +198,7 @@ def test_raises(self, finder):
198
198
request = MockRequest ("http://petstore.swagger.io" , "get" , request_uri )
199
199
200
200
with pytest .raises (OperationNotFound ):
201
- finder .find (request )
201
+ finder .find (request . method , request . full_url_pattern )
202
202
203
203
204
204
class BaseTestValid :
@@ -209,7 +209,7 @@ def test_simple(self, finder, spec):
209
209
"http://petstore.swagger.io" , method , request_uri
210
210
)
211
211
212
- result = finder .find (request )
212
+ result = finder .find (request . method , request . full_url_pattern )
213
213
214
214
path = spec / "paths" / self .path_name
215
215
operation = spec / "paths" / self .path_name / method
@@ -234,7 +234,7 @@ def test_variable(self, finder, spec, version):
234
234
"http://petstore.swagger.io" , method , request_uri
235
235
)
236
236
237
- result = finder .find (request )
237
+ result = finder .find (request . method , request . full_url_pattern )
238
238
239
239
path = spec / "paths" / self .path_name
240
240
operation = spec / "paths" / self .path_name / method
@@ -259,7 +259,7 @@ def test_path_variable(self, finder, spec, res_id):
259
259
"http://petstore.swagger.io" , method , request_uri
260
260
)
261
261
262
- result = finder .find (request )
262
+ result = finder .find (request . method , request . full_url_pattern )
263
263
264
264
path = spec / "paths" / self .path_name
265
265
operation = spec / "paths" / self .path_name / method
@@ -285,7 +285,7 @@ def test_raises(self, finder):
285
285
request = MockRequest ("http://petstore.swagger.io" , "get" , request_uri )
286
286
287
287
with pytest .raises (PathNotFound ):
288
- finder .find (request )
288
+ finder .find (request . method , request . full_url_pattern )
289
289
290
290
291
291
class TestSpecSimpleServerServerNotFound (
@@ -565,7 +565,7 @@ def test_valid(self, finder, spec):
565
565
"http://petstore.swagger.io" , method , request_uri
566
566
)
567
567
568
- result = finder .find (request )
568
+ result = finder .find (request . method , request . full_url_pattern )
569
569
570
570
path_2 = spec / "paths" / self .path_2_name
571
571
operation_2 = spec / "paths" / self .path_2_name / method
@@ -619,7 +619,7 @@ def test_valid(self, finder, spec):
619
619
request = MockRequest (
620
620
"http://petstore.swagger.io" , method , request_uri
621
621
)
622
- result = finder .find (request )
622
+ result = finder .find (request . method , request . full_url_pattern )
623
623
624
624
path_2 = spec / "paths" / self .path_2_name
625
625
operation_2 = spec / "paths" / self .path_2_name / method
@@ -674,7 +674,7 @@ def test_valid(self, finder, spec):
674
674
request = MockRequest (
675
675
"http://petstore.swagger.io" , method , request_uri
676
676
)
677
- result = finder .find (request )
677
+ result = finder .find (request . method , request . full_url_pattern )
678
678
679
679
path_2 = spec / "paths" / self .path_2_name
680
680
operation_2 = spec / "paths" / self .path_2_name / method
0 commit comments