Added tests for modifying and cancelling orders

This commit is contained in:
Raphael Michel
2015-06-28 16:15:40 +02:00
parent 1faee34c93
commit 75b8d800ea
7 changed files with 291 additions and 33 deletions

View File

@@ -139,7 +139,7 @@ class CheckoutTestCase(TestCase):
doc = BeautifulSoup(response.rendered_content)
self.assertEqual(len(doc.select('input[name=%s-attendee_name]' % cr1.identity)), 1)
# Not all required fields filled out, expect failure
# Not all fields filled out, expect success
response = self.client.post('/%s/%s/checkout' % (self.orga.slug, self.event.slug), {
'%s-attendee_name' % cr1.identity: '',
}, follow=True)