Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
- remove unused imports
- actually GET (not POST) on the _get tests
- remove outdated comment about Django 1.9 compat in tox.ini
  • Loading branch information
stefanfoulis committed Mar 7, 2016
1 parent b95439a commit 339b203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions filer/tests/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
from filer.models.filemodels import File
from filer.models.foldermodels import Folder, FolderPermission
from filer.models.imagemodels import Image
from filer.models.clipboardmodels import Clipboard
from filer.models.virtualitems import FolderRoot
from filer.models import tools
from filer.admin.folderadmin import FolderAdmin
from filer.tests.helpers import (create_superuser, create_folder_structure,
create_image, SettingsOverride)
Expand Down Expand Up @@ -74,12 +72,12 @@ def test_filer_remember_last_opened_directory(self):
self.assertTrue(isinstance(get_last_folder().context['folder'], FolderRoot))

def test_filer_directory_listing_root_empty_get(self):
response = self.client.post(reverse('admin:filer-directory_listing-root'))
response = self.client.get(reverse('admin:filer-directory_listing-root'))
self.assertEqual(response.status_code, 200)

def test_filer_directory_listing_root_get(self):
create_folder_structure(depth=3, sibling=2, parent=None)
response = self.client.post(reverse('admin:filer-directory_listing-root'))
response = self.client.get(reverse('admin:filer-directory_listing-root'))
self.assertEqual(response.status_code, 200)
self.assertEqual(response.context['folder'].children.count(), 6)

Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ deps =
django16: -rtest_requirements/django-1.6.txt
django17: -rtest_requirements/django-1.7.txt
django18: -rtest_requirements/django-1.8.txt
; Note: Django 1.9+ is not supported yet
django19: -rtest_requirements/django-1.9.txt
django_master: -rtest_requirements/django-master.txt
py26: unittest2
Expand Down

0 comments on commit 339b203

Please sign in to comment.