Skip to content

Commit 236b152

Browse files
author
Mark Unsworth
committed
clear out any existing objects in the setup
1 parent b02729c commit 236b152

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/lookup/tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
class LookupTests(TestCase):
1919

2020
def setUp(self):
21+
22+
Author.objects.all().delete()
23+
Article.objects.all().delete()
24+
Tag.objects.all().delete()
25+
2126
# Create a few Authors.
2227
self.au1 = Author(name='Author 1')
2328
self.au1.save()

0 commit comments

Comments
 (0)