From 20e5be26c026cd88c162a0b74ccf6e2de5294fa8 Mon Sep 17 00:00:00 2001 From: Oliver Zander Date: Mon, 10 Nov 2025 17:53:10 +0100 Subject: [PATCH] added test for failed extern redirect --- input/tests/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/input/tests/views.py b/input/tests/views.py index 5109466..aee69c9 100644 --- a/input/tests/views.py +++ b/input/tests/views.py @@ -28,6 +28,9 @@ class AnonymousViewTestCase(TestCase): request(self, 'extern', expected_url=url, data={'url': url}) + def test_extern_invalid_url(self): + request(self, 'extern', data={'url': 'https://domain.not/allowed/to/be/redirected/'}) + @classmethod def get_step_data(cls, choice, **data): return {