mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 03:56:43 +00:00
PEP fixes
This commit is contained in:
parent
e7685951e1
commit
0484e62836
@ -7,7 +7,7 @@ from .models import Company
|
|||||||
|
|
||||||
|
|
||||||
class CompanyTest(APITestCase):
|
class CompanyTest(APITestCase):
|
||||||
"""
|
"""
|
||||||
Series of tests for the Company DRF API
|
Series of tests for the Company DRF API
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -3,11 +3,11 @@ from rest_framework import status
|
|||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
|
|
||||||
from .models import StockLocation, StockItem
|
from .models import StockLocation
|
||||||
|
|
||||||
|
|
||||||
class StockLocationTest(APITestCase):
|
class StockLocationTest(APITestCase):
|
||||||
"""
|
"""
|
||||||
Series of API tests for the StockLocation API
|
Series of API tests for the StockLocation API
|
||||||
"""
|
"""
|
||||||
list_url = reverse('api-location-list')
|
list_url = reverse('api-location-list')
|
||||||
@ -46,7 +46,7 @@ class StockItemTest(APITestCase):
|
|||||||
list_url = reverse('api-stock-list')
|
list_url = reverse('api-stock-list')
|
||||||
|
|
||||||
def detail_url(self, pk):
|
def detail_url(self, pk):
|
||||||
return revere('api-stock-detail', kwargs={'pk': pk})
|
return reverse('api-stock-detail', kwargs={'pk': pk})
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
# Create a user for auth
|
# Create a user for auth
|
||||||
|
Loading…
x
Reference in New Issue
Block a user