Fixed tests
This commit is contained in:
parent
cb5b735565
commit
a591e4f547
@ -179,8 +179,10 @@ class ViewTest(TestCase):
|
||||
response = c.get('/agenda/%d/edit/' % 1000)
|
||||
self.assertEqual(response.status_code, 404)
|
||||
|
||||
data = {'title': 'newitem1', 'text': 'item1-text', 'weight': '0'}
|
||||
data = {'title': 'newitem1', 'text': 'item1-text', 'weight': '0',
|
||||
'type': 1}
|
||||
response = c.post('/agenda/%d/edit/' % self.item1.id, data)
|
||||
print response
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.refreshItems()
|
||||
self.assertEqual(self.item1.title, 'newitem1')
|
||||
|
Loading…
Reference in New Issue
Block a user