mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 16:58:10 +00:00
Revert "Different fix for MyPy complaining about StubTreq"
This reverts commit 1985eaac01a010fd27af6640d42e86b46d587fa2. It was pacifying MyPy but breaking the unit test at runtime.
This commit is contained in:
parent
1985eaac01
commit
5bcfa6fe03
@ -27,7 +27,6 @@ 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.client import HTTPClient
|
|
||||||
from treq.testing import StubTreq
|
from treq.testing import StubTreq
|
||||||
from klein import Klein
|
from klein import Klein
|
||||||
from hyperlink import DecodedURL
|
from hyperlink import DecodedURL
|
||||||
@ -715,7 +714,7 @@ 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 = HTTPClient(self.http.http_server.get_resource())
|
client = StubTreq(self.http.http_server.get_resource())
|
||||||
response = self.http.result_of_with_flush(
|
response = self.http.result_of_with_flush(
|
||||||
client.request(
|
client.request(
|
||||||
"GET",
|
"GET",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user