Skip to content

Commit

Permalink
test update on second poll
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Riina committed Nov 17, 2015
1 parent ba358f7 commit 9612bcc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions django_object_actions/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def test_queryset_supports_update(self):
qs = QuerySetIsh(self.obj)
qs.update(question='mooo')
self.assertEqual(Poll.objects.get(pk=1).question, 'mooo')
self.assertEqual(Poll.objects.get(pk=2).question, 'wut?')


class DecoratorTest(TestCase):
Expand Down
8 changes: 8 additions & 0 deletions example_project/polls/fixtures/sample_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
"question": "Do you like me?"
}
},
{
"pk": 2,
"model": "polls.poll",
"fields": {
"pub_date": "2012-10-20T18:20:38",
"question": "Do you wanna build a snow man?"
}
},
{
"pk": 1,
"model": "polls.choice",
Expand Down

0 comments on commit 9612bcc

Please sign in to comment.