Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
261
Issues
261
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul
third-party
Commits
5cc04c1d
Commit
5cc04c1d
authored
Jul 13, 2021
by
Alexis Aoun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: rajout de test de resolution d'url
parent
44fae8d1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
75 additions
and
29 deletions
+75
-29
test_url.py
inventory/tests/test_url.py
+8
-3
test_url.py
members/tests/test_url.py
+7
-3
test_url.py
orders/tests/test_url.py
+8
-3
test_url.py
products/tests/test_url.py
+8
-3
test_url.py
reception/tests/test_url.py
+8
-3
test_views.py
reception/tests/test_views.py
+4
-2
test_url.py
sales/tests/test_url.py
+8
-3
test_url.py
shelfs/tests/test_url.py
+8
-3
test_url.py
shop/tests/test_url.py
+8
-3
test_url.py
stock/tests/test_url.py
+8
-3
No files found.
inventory/tests/test_url.py
View file @
5cc04c1d
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
type
(
response
)
.
__name__
!=
"HttpResponseNotFound"
,
"Inventory url is not resolved"
members/tests/test_url.py
View file @
5cc04c1d
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
type
(
response
)
.
__name__
!=
"HttpResponseNotFound"
,
"Members url is not resolved"
orders/tests/test_url.py
View file @
5cc04c1d
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
type
(
response
)
.
__name__
!=
"HttpResponseNotFound"
,
"Orders url is not resolved"
\ No newline at end of file
products/tests/test_url.py
View file @
5cc04c1d
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
type
(
response
)
.
__name__
!=
"HttpResponseNotFound"
,
"Products url is not resolved"
reception/tests/test_url.py
View file @
5cc04c1d
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
type
(
response
)
.
__name__
!=
"HttpResponseNotFound"
,
"Reception url is not resolved"
reception/tests/test_views.py
View file @
5cc04c1d
from
django.test
import
SimpleTestCase
from
xmlrpc
import
client
\ No newline at end of file
from
django.test
import
SimpleTestCase
sales/tests/test_url.py
View file @
5cc04c1d
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
type
(
response
)
.
__name__
!=
"HttpResponseNotFound"
,
"Sales url is not resolved"
\ No newline at end of file
shelfs/tests/test_url.py
View file @
5cc04c1d
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
type
(
response
)
.
__name__
!=
"HttpResponseNotFound"
,
"Shelfs url is not resolved"
\ No newline at end of file
shop/tests/test_url.py
View file @
5cc04c1d
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
type
(
response
)
.
__name__
!=
"HttpResponseNotFound"
,
"Shop url is not resolved"
\ No newline at end of file
stock/tests/test_url.py
View file @
5cc04c1d
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
type
(
response
)
.
__name__
!=
"HttpResponseNotFound"
,
"Stock url is not resolved"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment