Fix property raised instead of returned (#17595)
This commit is contained in:
parent
2e4a297742
commit
d7b668eb94
|
@ -71,7 +71,7 @@ class _FastApiMockRequest:
|
|||
|
||||
@property
|
||||
def method(self):
|
||||
raise self._method
|
||||
return self._method
|
||||
|
||||
@property
|
||||
def headers(self):
|
||||
|
|
|
@ -485,6 +485,7 @@ class FlowAPI(LightningFlow):
|
|||
assert request.body()
|
||||
assert request.json()
|
||||
assert request.headers
|
||||
assert request.method
|
||||
return OutputRequestModel(name=config.name, counter=self.counter)
|
||||
|
||||
def configure_api(self):
|
||||
|
|
Loading…
Reference in New Issue