mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
remove need for mypy override
This commit is contained in:
parent
7417cdb01c
commit
074b6a6947
@ -27,7 +27,8 @@ from queue import Queue
|
|||||||
from pycddl import ValidationError as CDDLValidationError
|
from pycddl import ValidationError as CDDLValidationError
|
||||||
from hypothesis import assume, given, strategies as st, settings as hypothesis_settings
|
from hypothesis import assume, given, strategies as st, settings as hypothesis_settings
|
||||||
from fixtures import Fixture, TempDir, MonkeyPatch
|
from fixtures import Fixture, TempDir, MonkeyPatch
|
||||||
from treq.testing import StubTreq
|
from treq.client import HTTPClient
|
||||||
|
from treq.testing import StubTreq, RequestTraversalAgent
|
||||||
from klein import Klein
|
from klein import Klein
|
||||||
from hyperlink import DecodedURL
|
from hyperlink import DecodedURL
|
||||||
from collections_extended import RangeMap
|
from collections_extended import RangeMap
|
||||||
@ -714,9 +715,11 @@ class GenericHTTPAPITests(SyncTestCase):
|
|||||||
If nothing is given in the ``Authorization`` header at all an
|
If nothing is given in the ``Authorization`` header at all an
|
||||||
``Unauthorized`` response is returned.
|
``Unauthorized`` response is returned.
|
||||||
"""
|
"""
|
||||||
client = StubTreq(self.http.http_server.get_resource())
|
client = HTTPClient(
|
||||||
|
RequestTraversalAgent(self.http.http_server.get_resource())
|
||||||
|
)
|
||||||
response = self.http.result_of_with_flush(
|
response = self.http.result_of_with_flush(
|
||||||
client.request( # type: ignore[attr-defined]
|
client.request(
|
||||||
"GET",
|
"GET",
|
||||||
"http://127.0.0.1/storage/v1/version",
|
"http://127.0.0.1/storage/v1/version",
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user