mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Accounts app improvements and tests
This commit is contained in:
parent
8afef36656
commit
5172a9f619
20 changed files with 622 additions and 227 deletions
|
|
@ -116,7 +116,7 @@ class InstancesTestCase(TestCase):
|
|||
self.assertEqual(instance.disks[0]['size'], 1024**3)
|
||||
|
||||
response = self.client.post(reverse('instances:resize_disk', args=[instance.id]), {
|
||||
'disk_size_vda': '2.0 GB',
|
||||
'disk_size_vda': '2',
|
||||
})
|
||||
self.assertRedirects(response, reverse('instances:instance', args=[instance.id]) + '#resize')
|
||||
|
||||
|
|
@ -449,9 +449,8 @@ class InstancesTestCase(TestCase):
|
|||
response = self.client.post(
|
||||
reverse('instances:destroy', args=[instance.id]),
|
||||
{'delete_disk': True},
|
||||
HTTP_REFERER=reverse('index'),
|
||||
)
|
||||
self.assertRedirects(response, reverse('instances', args=[compute.id]))
|
||||
self.assertRedirects(response, reverse('instances:index'))
|
||||
|
||||
# # create volume
|
||||
# response = self.client.post(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue