Skip to content

Commit

Permalink
Fix to views test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Littman committed Jun 21, 2017
1 parent da8f5b7 commit f329158
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sfm/ui/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def setUp(self):
name='Test collection one',
)
self.seed = Seed.objects.create(collection=self.collection,
token="test token",
token="test",
uid="123",
)
self.factory = RequestFactory()
Expand Down Expand Up @@ -300,13 +300,13 @@ def test_post(self):

response = self.client.post(reverse("bulk_seed_create", args=[self.collection.pk]),
{'seeds_type': 'token', 'tokens': """
test token
test
test token2
@test token3
test2
@test3
"""})
self.assertEqual(3, Seed.objects.filter(collection=self.collection).count())
self.assertTrue(Seed.objects.filter(collection=self.collection, token='test token3').exists())
self.assertTrue(Seed.objects.filter(collection=self.collection, token='test3').exists())
self.assertTrue(response.url.endswith('/ui/collections/1/'))

def test_post_uid(self):
Expand Down

0 comments on commit f329158

Please sign in to comment.