feat: added lots of tests

This commit is contained in:
2024-05-13 12:33:09 +02:00
parent ad017382a9
commit 05caeb9607
8 changed files with 113 additions and 11 deletions
+4 -1
View File
@@ -11,13 +11,16 @@ from shop.api.v1.viewsets import (
)
app_name = "shop"
router = DefaultRouter()
router.register("taxes", TaxViewSet)
router.register("customers", CustomerViewSet)
router.register("providers", ProviderViewSet)
router.register("products", ProductViewSet)
router.register("product-prices", ProductPriceViewSet)
router.register("products/(?P<product_id>[^/.]+)/prices", ProductPriceViewSet)
router.register("product-batches", ProductBatchViewSet)
router.register("orders", OrderViewSet)
router.register("orders/(?P<order_id>[^/.]+)/lines", OrderLineViewSet)