Private
Public Access
1
0

Added minimock and created new class in tests.py - work in progress

This commit is contained in:
sanderroosendaal
2016-11-06 16:35:41 +01:00
parent a32fdcf636
commit 464550deb9
1259 changed files with 32372 additions and 0 deletions

View File

@@ -15,11 +15,24 @@ import os
from rowers.tasks import handle_makeplot
from rowers.c2stuff import C2NoTokenError
from minimocktest import MockTestCase
import json
from rowers import urls
from rowers.views import error500_view,error404_view,error400_view,error403_view
class DjangoTestCase(TestCase, MockTestCase):
def _pre_setup(self):
MockTestCase.setup(self)
TestCase._pre_setup(self)
self.client = Client()
def _post_teardown(self):
TestCase._post_teardown(self)
MockTestCase.tearDown(self)
# Create your tests here.
class TestErrorPages(TestCase):