Browse Source

Fixed broken test

pull/169/head
Michael Olund 5 years ago
parent
commit
14bb80e496
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      edivorce/apps/core/tests/test_api.py
  2. +1
    -1
      edivorce/apps/core/urls.py

+ 1
- 1
edivorce/apps/core/tests/test_api.py View File

@ -138,7 +138,7 @@ class APITest(APITestCase):
def test_get_file_by_key(self):
document = self._create_document()
url = reverse('file_by_key', kwargs={'file_key': document.file.name})
url = reverse('file_by_key', kwargs={'file_key': document.file.name, 'rotation': 0})
response = self.client.get(url)
self.assertEqual(response.status_code, status.HTTP_200_OK)


+ 1
- 1
edivorce/apps/core/urls.py View File

@ -7,7 +7,7 @@ urlpatterns = [
# url(r'^guide$', styleguide.guide),
url(r'^api/response$', api.UserResponseHandler.as_view()),
url(r'^api/documents/$', api.DocumentCreateView.as_view(), name='documents'),
path('api/documents/<file_key>/<int:rotation>/', api.get_document_file_by_key, name='document_by_key'),
path('api/documents/<file_key>/<int:rotation>/', api.get_document_file_by_key, name='file_by_key'),
# we add an extra 'x' to the file extension so the siteminder proxy doesn't treat it as an image
path('api/documents/<doc_type>/<int:party_code>/<filename>x/<int:size>/', api.DocumentView.as_view(), name='document'),


Loading…
Cancel
Save