test_decorators: Annotate fake Request as HttpRequest.

This commit is contained in:
Tim Abbott 2017-08-05 17:44:55 -07:00
parent 4bb979d869
commit fc0144f6e4
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ class TestInternalNotifyView(TestCase):
req = self.Request(
POST=dict(secret=secret),
META=dict(REMOTE_ADDR='127.0.0.1'),
)
) # type: HttpRequest
with self.settings(SHARED_SECRET=secret):
self.assertTrue(authenticate_notify(req))