class _CookieCompatRequest(urllib.request.Request):
"""
- Wraps a `Request` instance up in a compatability interface suitable
+ Wraps a `Request` instance up in a compatibility interface suitable
for use with `CookieJar` operations.
"""
class _CookieCompatResponse:
"""
- Wraps a `Request` instance up in a compatability interface suitable
+ Wraps a `Request` instance up in a compatibility interface suitable
for use with `CookieJar` operations.
"""
codes = StatusCode
-# Include lower-case styles for `requests` compatability.
+# Include lower-case styles for `requests` compatibility.
for code in codes:
setattr(codes, code._name_.lower(), int(code))
def threadpool(func):
"""
- Our sync tests should run in seperate thread to the uvicorn server.
+ Our sync tests should run in separate thread to the uvicorn server.
"""
@functools.wraps(func)
def test_dispatch_class():
"""
- Use a syncronous 'Dispatcher' class directly.
+ Use a synchronous 'Dispatcher' class directly.
"""
url = "https://example.org/"
with MockDispatch() as dispatcher: