From b2497df2b09cf725ddc57fef0ec5aeca1a1bcfe7 Mon Sep 17 00:00:00 2001 From: Brent O'Connor Date: Mon, 14 Nov 2016 12:28:07 -0600 Subject: [PATCH] Updated django-categories to work with Django 1.10 --- categories/tests/test_category_import.py | 2 +- requirements.txt | 2 +- tox.ini | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/categories/tests/test_category_import.py b/categories/tests/test_category_import.py index 4ecde46..3db1be4 100644 --- a/categories/tests/test_category_import.py +++ b/categories/tests/test_category_import.py @@ -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) diff --git a/requirements.txt b/requirements.txt index be1d646..f6c39f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -django-mptt>=0.8,<0.9 +django-mptt>=0.8.6,<0.9 unicode-slugify==0.1.1 diff --git a/tox.ini b/tox.ini index de09c24..7444ae3 100644 --- a/tox.ini +++ b/tox.ini @@ -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/