Updated django-categories to work with Django 1.10

This commit is contained in:
Brent O'Connor 2016-11-14 12:28:07 -06:00
parent 96a0fa037f
commit b2497df2b0
3 changed files with 7 additions and 6 deletions

View file

@ -19,7 +19,7 @@ class CategoryImportTest(TestCase):
root_cats = ['Category 1', 'Category 2', 'Category 3']
testfile = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'fixtures', filename))
cmd = Command()
cmd.execute(testfile)
cmd.handle(testfile)
roots = Category.tree.root_nodes()
self.assertEqual(len(roots), 3)

View file

@ -1,2 +1,2 @@
django-mptt>=0.8,<0.9
django-mptt>=0.8.6,<0.9
unicode-slugify==0.1.1

View file

@ -1,12 +1,13 @@
[tox]
envlist =
py27-lint
py27-django{18,19},
py34-django{18,19},
py35-django{18,19},
py27-django{18,19,110},
py34-django{18,19,110},
py35-django{18,19,110},
[testenv]
deps=
django110: Django==1.10.3
django19: Django==1.9.2
django18: Django==1.8.9
coverage==4.0.3
@ -20,4 +21,4 @@ deps=
flake8
commands=
flake8 . --ignore=E501 --exclude=categories/south_migrations/
flake8 . --ignore=E501 --exclude=categories/south_migrations/,.tox/