Skip to content

Commit

Permalink
feat: run ASGI lifespan events
Browse files Browse the repository at this point in the history
  • Loading branch information
fyhertz committed Jun 7, 2023
1 parent 5082339 commit ec1d9b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schemathesis/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ def call_asgi(
)
if base_url is None:
base_url = self.get_full_base_url()
client = ASGIClient(application)

return self.call(base_url=base_url, session=client, headers=headers, **kwargs)
with ASGIClient(application) as client:
return self.call(base_url=base_url, session=client, headers=headers, **kwargs)

def validate_response(
self,
Expand Down

0 comments on commit ec1d9b4

Please sign in to comment.