mirror of https://github.com/zulip/zulip.git
test_decorators: Annotate fake Request as HttpRequest.
This commit is contained in:
parent
4bb979d869
commit
fc0144f6e4
|
@ -960,7 +960,7 @@ class TestInternalNotifyView(TestCase):
|
||||||
req = self.Request(
|
req = self.Request(
|
||||||
POST=dict(secret=secret),
|
POST=dict(secret=secret),
|
||||||
META=dict(REMOTE_ADDR='127.0.0.1'),
|
META=dict(REMOTE_ADDR='127.0.0.1'),
|
||||||
)
|
) # type: HttpRequest
|
||||||
|
|
||||||
with self.settings(SHARED_SECRET=secret):
|
with self.settings(SHARED_SECRET=secret):
|
||||||
self.assertTrue(authenticate_notify(req))
|
self.assertTrue(authenticate_notify(req))
|
||||||
|
|
Loading…
Reference in New Issue