##// END OF EJS Templates
Fixed tests with tag uniqueness change
neko259 -
r985:3cd64ae8 default
parent child Browse files
Show More
@@ -7,7 +7,7 b' from boards.models import Tag, Post, Thr'
7 class PostTests(TestCase):
7 class PostTests(TestCase):
8
8
9 def _create_post(self):
9 def _create_post(self):
10 tag = Tag.objects.create(name='test_tag')
10 tag, created = Tag.objects.get_or_create(name='test_tag')
11 return Post.objects.create_post(title='title', text='text',
11 return Post.objects.create_post(title='title', text='text',
12 tags=[tag])
12 tags=[tag])
13
13
General Comments 0
You need to be logged in to leave comments. Login now