Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Commit

Permalink
Updated outdated dependencies #24
Browse files Browse the repository at this point in the history
django 1.10
django-reversion 2.0.6
django-sortedm2m 1.3.2

Closes #24
  • Loading branch information
nemesifier committed Aug 3, 2016
1 parent e5559b3 commit 2614c31
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 22 deletions.
17 changes: 0 additions & 17 deletions django_netjsonconfig/fixtures/test_users.json

This file was deleted.

6 changes: 5 additions & 1 deletion django_netjsonconfig/tests/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json

from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase

Expand All @@ -10,11 +11,14 @@ class TestAdmin(TestCase):
"""
tests for Config model
"""
fixtures = ['test_templates', 'test_users']
fixtures = ['test_templates']
maxDiff = None
TEST_KEY = '00:11:22:33:44:55'

def setUp(self):
User.objects.create_superuser(username='admin',
password='tester',
email='admin@admin.com')
self.client.login(username='admin', password='tester')

def test_change_config_clean_templates(self):
Expand Down
5 changes: 4 additions & 1 deletion django_netjsonconfig/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ class TestViews(TestCase):
"""
tests for django_netjsonconfig.views
"""
fixtures = ['test_users']
def setUp(self):
User.objects.create_superuser(username='admin',
password='tester',
email='admin@admin.com')

def test_schema_403(self):
response = self.client.get(reverse('netjsonconfig:schema'))
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
django>=1.9,<1.10
django>=1.10,<1.11
django-model-utils
jsonfield
six
netjsonconfig>=0.4.2,<0.5.0
django-sortedm2m>=1.1.0,<1.3
django-reversion>=1.10.0,<1.11.0
django-sortedm2m>=1.3.2,<1.4
django-reversion>=2.0.6,<2.1

0 comments on commit 2614c31

Please sign in to comment.