Fix property raised instead of returned (#17595)

This commit is contained in:
BOON KIAT 2023-05-09 06:37:30 +08:00 committed by GitHub
parent 2e4a297742
commit d7b668eb94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class _FastApiMockRequest:
@property
def method(self):
raise self._method
return self._method
@property
def headers(self):

View File

@ -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):