Skip to content

Commit

Permalink
Updated django-categories to work with Django 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
epicserve committed Nov 14, 2016
1 parent 96a0fa0 commit b2497df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion categories/tests/test_category_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _import_file(self, filename):
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)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
django-mptt>=0.8,<0.9
django-mptt>=0.8.6,<0.9
unicode-slugify==0.1.1
9 changes: 5 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -20,4 +21,4 @@ deps=
flake8

commands=
flake8 . --ignore=E501 --exclude=categories/south_migrations/
flake8 . --ignore=E501 --exclude=categories/south_migrations/,.tox/

0 comments on commit b2497df

Please sign in to comment.