mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Skip old style tests on Django 1.8 and above
This commit is contained in:
parent
1384129d89
commit
4b4b4bcc74
@ -1,3 +1,6 @@
|
||||
import unittest
|
||||
|
||||
import django
|
||||
from django.test import TestCase, RequestFactory
|
||||
from django.core.urlresolvers import NoReverseMatch
|
||||
|
||||
@ -112,6 +115,7 @@ class TestNewStyleRoutablePage(TestCase):
|
||||
self.assertContains(response, "EXTERNAL VIEW: ARG NOT SET")
|
||||
|
||||
|
||||
@unittest.skipIf(django.VERSION >= (1, 8), "Old style routable pages don't work on Django 1.8")
|
||||
class TestOldStyleRoutablePage(TestNewStyleRoutablePage):
|
||||
model = OldStyleRoutablePageTest
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user