Added needed fixtures to RedirectsTests
- Legacy-Id: 12717
This commit is contained in:
parent
a5d1aca525
commit
435b109673
|
@ -33,6 +33,8 @@
|
|||
|
||||
from ietf.utils.test_utils import split_url, TestCase
|
||||
|
||||
import debug # pyflakes:ignore
|
||||
|
||||
REDIRECT_TESTS = {
|
||||
|
||||
# announcements
|
||||
|
@ -87,6 +89,8 @@ REDIRECT_TESTS = {
|
|||
}
|
||||
|
||||
class RedirectsTests(TestCase):
|
||||
fixtures = ["initial_data.xml", ]
|
||||
|
||||
def test_redirects(self):
|
||||
for src, dst in REDIRECT_TESTS.items():
|
||||
baseurl, args = split_url(src)
|
||||
|
|
|
@ -4,6 +4,8 @@ from django.http import HttpResponsePermanentRedirect, Http404, BadHeaderError
|
|||
from django.shortcuts import get_object_or_404
|
||||
import re
|
||||
|
||||
import debug # pyflakes:ignore
|
||||
|
||||
from ietf.redirects.models import Redirect, Command
|
||||
|
||||
def redirect(request, path="", script=""):
|
||||
|
|
Loading…
Reference in a new issue