From b74826c4d0039e62055f2a172503fc8060ec5875 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 28 May 2022 18:25:22 +0200 Subject: [PATCH] small docstring changes --- InvenTree/InvenTree/__init__.py | 3 +-- InvenTree/stock/test_api.py | 1 + InvenTree/stock/test_views.py | 2 +- InvenTree/stock/views.py | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/InvenTree/InvenTree/__init__.py b/InvenTree/InvenTree/__init__.py index 521e0a60fc..006862ae55 100644 --- a/InvenTree/InvenTree/__init__.py +++ b/InvenTree/InvenTree/__init__.py @@ -1,5 +1,4 @@ -""" -The InvenTree module provides high-level management and functionality. +"""The InvenTree module provides high-level management and functionality. It provides a number of helper functions and generic classes which are used by InvenTree apps. """ diff --git a/InvenTree/stock/test_api.py b/InvenTree/stock/test_api.py index 69642f8bee..5012155b9e 100644 --- a/InvenTree/stock/test_api.py +++ b/InvenTree/stock/test_api.py @@ -46,6 +46,7 @@ class StockAPITestCase(InvenTreeAPITestCase): class StockLocationTest(StockAPITestCase): """Series of API tests for the StockLocation API.""" + list_url = reverse('api-location-list') def setUp(self): diff --git a/InvenTree/stock/test_views.py b/InvenTree/stock/test_views.py index eaf28b112e..f8a0f6750b 100644 --- a/InvenTree/stock/test_views.py +++ b/InvenTree/stock/test_views.py @@ -1,4 +1,4 @@ -"""Unit tests for Stock views (see views.py)""" +"""Unit tests for Stock views (see views.py).""" from django.urls import reverse diff --git a/InvenTree/stock/views.py b/InvenTree/stock/views.py index c67d9676ad..31b1bed211 100644 --- a/InvenTree/stock/views.py +++ b/InvenTree/stock/views.py @@ -20,6 +20,7 @@ from .models import StockItem, StockItemTracking, StockLocation class StockIndex(InvenTreeRoleMixin, InvenTreePluginViewMixin, ListView): """StockIndex view loads all StockLocation and StockItem object.""" + model = StockItem template_name = 'stock/location.html' context_obect_name = 'locations'