Ver código fonte

fix error in status code

pull/342/head
Guillaume Vincent 8 anos atrás
pai
commit
388acd33c8
2 arquivos alterados com 3 adições e 3 exclusões
  1. +2
    -2
      api/tests/tests_entries.py
  2. +1
    -1
      requirements.txt

+ 2
- 2
api/tests/tests_entries.py Ver arquivo

@@ -7,9 +7,9 @@ from api.tests import factories


class LogoutApiTestCase(APITestCase):
def test_get_entries_403(self):
def test_get_entries_401(self):
response = self.client.get('/api/entries/')
self.assertEqual(403, response.status_code)
self.assertEqual(401, response.status_code)


class LoginApiTestCase(APITestCase):


+ 1
- 1
requirements.txt Ver arquivo

@@ -1,4 +1,4 @@
Django==1.9.4
Django==1.9.5
djangorestframework==3.3.3
djangorestframework-jwt==1.7.2
smartconfigparser==0.1.1


Carregando…
Cancelar
Salvar