# HG changeset patch # User neko259 # Date 2015-02-08 14:25:18 # Node ID 3cd64ae8dc1e244f109d1914758cd16b1f5ac26b # Parent c2eb220a2a9df5baef0a9269eea2c8e9505e2815 Fixed tests with tag uniqueness change diff --git a/boards/tests/test_post.py b/boards/tests/test_post.py --- a/boards/tests/test_post.py +++ b/boards/tests/test_post.py @@ -7,7 +7,7 @@ from boards.models import Tag, Post, Thr class PostTests(TestCase): def _create_post(self): - tag = Tag.objects.create(name='test_tag') + tag, created = Tag.objects.get_or_create(name='test_tag') return Post.objects.create_post(title='title', text='text', tags=[tag])