mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-16 22:20:24 +00:00
Using django's TestCase and instead of the one from unittest.
This commit is contained in:
parent
631727d0f0
commit
8ea3b97786
2 changed files with 4 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import unittest
|
||||
|
||||
from django.db import models
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.test import TestCase
|
||||
|
||||
from ..models import ModelAdmin2
|
||||
from ..core import Admin2
|
||||
|
|
@ -11,7 +10,7 @@ class Thing(models.Model):
|
|||
pass
|
||||
|
||||
|
||||
class Admin2Test(unittest.TestCase):
|
||||
class Admin2Test(TestCase):
|
||||
def setUp(self):
|
||||
self.admin2 = Admin2()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from django.utils import unittest
|
||||
from django.test import TestCase
|
||||
from django.test.client import RequestFactory
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ from djadmin2.models import ModelAdmin2
|
|||
from ..models import Post
|
||||
|
||||
|
||||
class ViewTest(unittest.TestCase):
|
||||
class ViewTest(TestCase):
|
||||
def setUp(self):
|
||||
self.factory = RequestFactory()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue