Made unittest suite finish without errors using new proxy system.

This commit is contained in:
Griatch 2015-01-03 15:08:06 +01:00
parent 71b6600d87
commit 2782e03478
9 changed files with 73 additions and 60 deletions

View file

@ -1,9 +1,5 @@
try:
# this is an optimized version only available in later Django versions
from django.utils.unittest import TestCase
except ImportError:
# if the first fails, we use the old version
from django.test import TestCase
# this is an optimized version only available in later Django versions
from django.utils.unittest import TestCase
from src.scripts.models import ScriptDB, ObjectDoesNotExist
from src.utils.create import create_script