Unverified Commit 5a563d2f by Alexis Aoun Committed by Paul B

feat: rajout de test de resolution d'url

cleaning

test sur le code http plutot que le className

rajout d'une ligne de fin de doc
parent 44fae8d1
from django.test import SimpleTestCase
class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self):
assert 1==1
\ No newline at end of file
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test import Client
class TestUrls(SimpleTestCase): class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self): def testInventoryUrlIsResolved(self):
assert 1==1
\ No newline at end of file c = Client()
response = c.get('/reception/')
assert response.status_code == 200, "Inventory url is not resolved"
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test import Client
class TestUrls(SimpleTestCase): class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self): def testMembersUrlIsResolved(self):
assert 1==1
\ No newline at end of file c = Client()
response = c.get('/members/')
assert response.status_code == 200, "Members url is not resolved"
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test import Client
class TestUrls(SimpleTestCase): class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self): def testOrdersUrlIsResolved(self):
assert 1==1
\ No newline at end of file c = Client()
response = c.get('/orders/')
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
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test import Client
class TestUrls(SimpleTestCase): class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self): def testProductsUrlIsResolved(self):
assert 1==1
\ No newline at end of file c = Client()
response = c.get('/products/')
assert response.status_code == 200, "Products url is not resolved"
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test import Client
class TestUrls(SimpleTestCase): class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self): def testReceptionUrlIsResolved(self):
assert 1==1
\ No newline at end of file c = Client()
response = c.get('/reception/')
assert response.status_code == 200 , "Reception url is not resolved"
from django.test import SimpleTestCase from django.test import SimpleTestCase
\ No newline at end of file
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test import Client
class TestUrls(SimpleTestCase): class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self): def testSalesUrlIsResolved(self):
assert 1==1
\ No newline at end of file c = Client()
response = c.get('/sales/')
assert response.status_code == 200, "Sales url is not resolved"
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test import Client
class TestUrls(SimpleTestCase): class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self): def testShelfsUrlIsResolved(self):
assert 1==1
\ No newline at end of file c = Client()
response = c.get('/shelfs/')
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
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test import Client
class TestUrls(SimpleTestCase): class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self): def testShopUrlIsResolved(self):
assert 1==1
\ No newline at end of file c = Client()
response = c.get('/shop/')
assert response.status_code == 200, "Shop url is not resolved"
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test import Client
class TestUrls(SimpleTestCase): class TestUrls(SimpleTestCase):
def test_list_url_is_resolved(self): def testStockUrlIsResolved(self):
assert 1==1
\ No newline at end of file c = Client()
response = c.get('/stock/')
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