Added needed fixtures to RedirectsTests

- Legacy-Id: 12717
This commit is contained in:
Henrik Levkowetz 2017-01-23 20:10:36 +00:00
parent a5d1aca525
commit 435b109673
2 changed files with 6 additions and 0 deletions

View file

@ -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)

View file

@ -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=""):