use full names consistently

This commit is contained in:
Matthias 2022-05-04 15:18:36 +02:00
parent 4053a91450
commit df9ca599a2
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093
3 changed files with 5 additions and 5 deletions

View File

@ -875,7 +875,7 @@ class SalesOrderShipmentCompleteSerializer(serializers.ModelSerializer):
shipment.complete_shipment(user, tracking_number=tracking_number)
class SOShipmentAllocationItemSerializer(serializers.Serializer):
class SalesOrderShipmentAllocationItemSerializer(serializers.Serializer):
"""
A serializer for allocating a single stock-item against a SalesOrder shipment
"""
@ -1148,7 +1148,7 @@ class SalesOrderShipmentAllocationSerializer(serializers.Serializer):
'shipment',
]
items = SOShipmentAllocationItemSerializer(many=True)
items = SalesOrderShipmentAllocationItemSerializer(many=True)
shipment = serializers.PrimaryKeyRelatedField(
queryset=order.models.SalesOrderShipment.objects.all(),

View File

@ -59,7 +59,7 @@ class OrderListTest(OrderViewTestCase):
self.assertEqual(response.status_code, 200)
class POTests(OrderViewTestCase):
class PurchaseOrderTests(OrderViewTestCase):
""" Tests for PurchaseOrder views """
def test_detail_view(self):

View File

@ -227,7 +227,7 @@ class BOMReportTest(ReportTest):
print_url = 'api-bom-report-print'
class POReportTest(ReportTest):
class PurchaseOrderReportTest(ReportTest):
model = report_models.PurchaseOrderReport
@ -236,7 +236,7 @@ class POReportTest(ReportTest):
print_url = 'api-po-report-print'
class SOReportTest(ReportTest):
class SalesOrderReportTest(ReportTest):
model = report_models.SalesOrderReport