Sfoglia il codice sorgente

fix error in status code

pull/342/head
Guillaume Vincent 8 anni fa
parent
commit
388acd33c8
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +2
    -2
      api/tests/tests_entries.py
  2. +1
    -1
      requirements.txt

+ 2
- 2
api/tests/tests_entries.py Vedi File

@@ -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 Vedi File

@@ -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


Caricamento…
Annulla
Salva