Skip to content

Commit

Permalink
Need to delete all the objects before each test because the import ch…
Browse files Browse the repository at this point in the history
…ecks its work.
  • Loading branch information
Corey Oordt committed Feb 14, 2011
1 parent 31f1bfe commit 2bfe753
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions categories/tests/category_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ def _import_file(self, filename):


def testImportSpaceDelimited(self):
Category.objects.all().delete()
self._import_file('test_category_spaces.txt')


def testImportTabDelimited(self):
Category.objects.all().delete()
self._import_file('test_category_tabs.txt')


Expand Down

0 comments on commit 2bfe753

Please sign in to comment.