Fix typo in asgi client

This commit is contained in:
Adam Hopkins 2021-01-31 16:41:10 +02:00
parent afb527b37c
commit 0165c9c644

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)