diff options
| author | Vishal Goyal <vishal.goyal7711@gmail.com> | 2026-05-08 22:19:15 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-08 22:19:15 +0530 |
| commit | 7cdb932f68fc79d820c41ffc1e2a63d7178b20c7 (patch) | |
| tree | 3133e84c06ce137fc7496dda25eb47469d7a1ac2 /djangoproject/urls/tests/test_www.py | |
| parent | a64c34e669bd5611afebd5da9ce3b622a786eae3 (diff) | |
Redirect /about to /foundation (#2429)
* Redirect /about to /foundation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'djangoproject/urls/tests/test_www.py')
| -rw-r--r-- | djangoproject/urls/tests/test_www.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/djangoproject/urls/tests/test_www.py b/djangoproject/urls/tests/test_www.py new file mode 100644 index 00000000..530c87fe --- /dev/null +++ b/djangoproject/urls/tests/test_www.py @@ -0,0 +1,12 @@ +from django.test import SimpleTestCase +from django.urls import reverse + + +class AboutRedirectTests(SimpleTestCase): + def test_about_redirects_to_foundation(self): + response = self.client.get("/about/") + self.assertRedirects( + response, + reverse("members:developer-members"), + status_code=301, + ) |
