2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 13:56:30 +00:00

Add some unit tests

This commit is contained in:
Oliver Walters
2020-05-11 23:44:22 +10:00
parent a7e5a79f4c
commit cfc0145180
2 changed files with 20 additions and 4 deletions

View File

@ -646,18 +646,18 @@ part_api_urls = [
# Base URL for PartCategory API endpoints
url(r'^category/', include([
url(r'^(?P<pk>\d+)/?', CategoryDetail.as_view(), name='api-part-category-detail'),
url(r'.*^$', CategoryList.as_view(), name='api-part-category-list'),
url(r'^$', CategoryList.as_view(), name='api-part-category-list'),
])),
# Base URL for PartAttachment API endpoints
url(r'attachment/', include([
url(r'^.*$', PartAttachmentList.as_view(), name='api-part-attachment-list'),
url(r'^$', PartAttachmentList.as_view(), name='api-part-attachment-list'),
])),
# Base URL for PartStar API endpoints
url(r'^star/', include([
url(r'^(?P<pk>\d+)/?', PartStarDetail.as_view(), name='api-part-star-detail'),
url(r'^.*$', PartStarList.as_view(), name='api-part-star-list'),
url(r'^$', PartStarList.as_view(), name='api-part-star-list'),
])),
# Base URL for PartParameter API endpoints