Commit d5d3127f by Alexis Aoun

test sur le code http plutot que le className

parent 7b911816
from django.test import SimpleTestCase
class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self):
assert 1==1
\ No newline at end of file
......@@ -8,5 +8,5 @@ class TestUrls(SimpleTestCase):
c = Client()
response = c.get('/reception/')
assert type(response).__name__ != "HttpResponseNotFound", "Inventory url is not resolved"
assert response.status_code == 200, "Inventory url is not resolved"
......@@ -8,4 +8,4 @@ class TestUrls(SimpleTestCase):
c = Client()
response = c.get('/members/')
assert type(response).__name__ != "HttpResponseNotFound", "Members url is not resolved"
assert response.status_code == 200, "Members url is not resolved"
......@@ -8,5 +8,5 @@ class TestUrls(SimpleTestCase):
c = Client()
response = c.get('/orders/')
assert type(response).__name__ != "HttpResponseNotFound", "Orders url is not resolved"
assert response.status_code == 200, "Orders url is not resolved"
from django.test import SimpleTestCase
class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self):
assert 1==1
\ No newline at end of file
......@@ -8,5 +8,5 @@ class TestUrls(SimpleTestCase):
c = Client()
response = c.get('/products/')
assert type(response).__name__ != "HttpResponseNotFound", "Products url is not resolved"
assert response.status_code == 200, "Products url is not resolved"
......@@ -8,5 +8,5 @@ class TestUrls(SimpleTestCase):
c = Client()
response = c.get('/reception/')
assert type(response).__name__ != "HttpResponseNotFound", "Reception url is not resolved"
assert response.status_code == 200 , "Reception url is not resolved"
......@@ -8,5 +8,5 @@ class TestUrls(SimpleTestCase):
c = Client()
response = c.get('/sales/')
assert type(response).__name__ != "HttpResponseNotFound", "Sales url is not resolved"
assert response.status_code == 200, "Sales url is not resolved"
......@@ -8,5 +8,5 @@ class TestUrls(SimpleTestCase):
c = Client()
response = c.get('/shelfs/')
assert type(response).__name__ != "HttpResponseNotFound", "Shelfs url is not resolved"
assert response.status_code == 200, "Shelfs url is not resolved"
from django.test import SimpleTestCase
class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self):
assert 1==1
\ No newline at end of file
......@@ -8,5 +8,5 @@ class TestUrls(SimpleTestCase):
c = Client()
response = c.get('/shop/')
assert type(response).__name__ != "HttpResponseNotFound", "Shop url is not resolved"
assert response.status_code == 200, "Shop url is not resolved"
......@@ -8,5 +8,5 @@ class TestUrls(SimpleTestCase):
c = Client()
response = c.get('/stock/')
assert type(response).__name__ != "HttpResponseNotFound", "Stock url is not resolved"
assert response.status_code == 200, "Stock url is not resolved"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment