From c4f1a81c9c76e3082b91767a108c1477141ff154 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 01:18:45 +0100 Subject: [PATCH] fix permissions for test --- InvenTree/order/test_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/order/test_api.py b/InvenTree/order/test_api.py index 7dd92bdd19..d2f5dc73db 100644 --- a/InvenTree/order/test_api.py +++ b/InvenTree/order/test_api.py @@ -107,6 +107,9 @@ class PurchaseOrderTest(OrderTest): def test_po_reference(self): """test that a reference with a too big / small reference is not possible""" + # get permissions + self.assignRole('purchase_order.add') + url = reverse('api-po-list') huge_numer = 9223372036854775808