Skip to content

Commit 435b109

Browse files
committed
Added needed fixtures to RedirectsTests
- Legacy-Id: 12717
1 parent a5d1aca commit 435b109

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

ietf/redirects/tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333

3434
from ietf.utils.test_utils import split_url, TestCase
3535

36+
import debug # pyflakes:ignore
37+
3638
REDIRECT_TESTS = {
3739

3840
# announcements
@@ -87,6 +89,8 @@
8789
}
8890

8991
class RedirectsTests(TestCase):
92+
fixtures = ["initial_data.xml", ]
93+
9094
def test_redirects(self):
9195
for src, dst in REDIRECT_TESTS.items():
9296
baseurl, args = split_url(src)

ietf/redirects/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from django.shortcuts import get_object_or_404
55
import re
66

7+
import debug # pyflakes:ignore
8+
79
from ietf.redirects.models import Redirect, Command
810

911
def redirect(request, path="", script=""):

0 commit comments

Comments
 (0)