Fixes #1 Test fail on django 1.8
Super call to setUpClass is needed to make tests pass. This change was already made to the starter django template in microsoft/ptvs
This commit is contained in:
Родитель
71405ff967
Коммит
3ce0b16962
|
@ -15,6 +15,7 @@ class ViewTest(TestCase):
|
|||
# Django 1.7 requires an explicit setup() when running tests in PTVS
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(ViewTest, cls).setUpClass()
|
||||
django.setup()
|
||||
|
||||
def test_home(self):
|
||||
|
|
Загрузка…
Ссылка в новой задаче