mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-21 03:55:27 +00:00
Revert "Different fix for MyPy complaining about StubTreq"
This reverts commit 1985eaac01
.
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 hypothesis import assume, given, strategies as st, settings as hypothesis_settings
|
||||
from fixtures import Fixture, TempDir, MonkeyPatch
|
||||
from treq.client import HTTPClient
|
||||
from treq.testing import StubTreq
|
||||
from klein import Klein
|
||||
from hyperlink import DecodedURL
|
||||
@ -715,7 +714,7 @@ class GenericHTTPAPITests(SyncTestCase):
|
||||
If nothing is given in the ``Authorization`` header at all an
|
||||
``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(
|
||||
client.request(
|
||||
"GET",
|
||||
|
Loading…
Reference in New Issue
Block a user