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:
Florian Sesser 2024-11-18 12:08:16 +00:00
parent 1985eaac01
commit 5bcfa6fe03

View File

@ -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",