Merge pull request #2014 from sanic-org/test-manager-fix

Fix typo in asgi client
This commit is contained in:
Adam Hopkins 2021-01-31 16:59:00 +02:00 committed by GitHub
commit ffca01ffff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1048,7 +1048,7 @@ class Sanic:
if self._asgi_client:
return self._asgi_client
elif self._test_manager:
return self._test_manager.test_client
return self._test_manager.asgi_client
from sanic_testing.testing import SanicASGITestClient # type: ignore
self._asgi_client = SanicASGITestClient(self)