mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
updated admin tests
This commit is contained in:
parent
723ef2cd91
commit
7bf545d7ae
3 changed files with 5 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ INSTALLED_APPS = (
|
|||
'testproject.test_app',
|
||||
)
|
||||
|
||||
ROOT_URLCONF = 'testproject.test_urls'
|
||||
ROOT_URLCONF = 'testproject.urls'
|
||||
|
||||
CONSTANCE_CONNECTION_CLASS = 'testproject.test_app.redis_mockup.Connection'
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,6 @@ class TestStorage(TestCase):
|
|||
|
||||
|
||||
class TestAdmin(TestCase):
|
||||
urls = 'tests.tests'
|
||||
model = Config
|
||||
|
||||
def setUp(self):
|
||||
|
|
@ -83,5 +82,6 @@ class TestAdmin(TestCase):
|
|||
self.client.login(username=self.user, password='nimda')
|
||||
|
||||
def test_changelist(self):
|
||||
self.assertEquals(self.options.changelist_view(self.fake_request, {}), {})
|
||||
response = self.options.changelist_view(self.fake_request, {})
|
||||
self.assertEquals(response.status_code, 200)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from django.conf.urls.defaults import patterns, include
|
||||
|
||||
urlpatterns = patterns('',
|
||||
|
|
|
|||
Loading…
Reference in a new issue