Fix crashing test

This commit is contained in:
Carl van Tonder
2018-09-22 22:25:04 -04:00
parent ff445e166d
commit ab57602a5f
3 changed files with 10 additions and 4 deletions

View File

@ -48,7 +48,7 @@ class FileTests(TestCase):
login = self.login()
with open('apps/map/static/map/ojuso-logo-white.png', 'rb') as fp:
response = self.client.post(reverse('files:upload'), {
response = self.client.post(reverse('files:upload_image'), {
'file': fp
})
@ -56,7 +56,7 @@ class FileTests(TestCase):
self.assertIsInstance(data['id'], int)
self.assertEqual(data['is_valid'], True)
response = self.client.post(reverse('files:delete', kwargs={
response = self.client.post(reverse('files:delete_image', kwargs={
'pk': data['id']
}))