From 8969ae369d62eaa645b795976043c0ad7931b8cd Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 18 Nov 2022 08:31:43 +0000 Subject: [PATCH] Add return types to tests --- website/well_known/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/well_known/tests.py b/website/well_known/tests.py index ed3b340..dd05a2b 100644 --- a/website/well_known/tests.py +++ b/website/well_known/tests.py @@ -48,7 +48,7 @@ class ActivityPubProxyView(TestCase): reverse("well-known:nodeinfo"), ] - def setUp(self): + def setUp(self) -> None: super().setUp() proxy_view_patcher = patch("website.well_known.views.proxy_view") @@ -58,7 +58,7 @@ class ActivityPubProxyView(TestCase): self.proxy_view.return_value = HttpResponse() @override_settings(ACTIVITYPUB_HOST="activitypub.example.com") - def test_urls(self): + def test_urls(self) -> None: for path in self.PROXIED_PATHS: with self.subTest(path): response = self.client.get(path) @@ -70,7 +70,7 @@ class ActivityPubProxyView(TestCase): self.assertEqual(response["Cache-Control"], "max-age=60") @override_settings(ACTIVITYPUB_HOST="") - def test_unconfigured(self): + def test_unconfigured(self) -> None: for path in self.PROXIED_PATHS: with self.subTest(path): response = self.client.get(path)