mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Unit test fixes
This commit is contained in:
parent
0adf89e793
commit
09ff4862ec
@ -112,17 +112,16 @@ class PurchaseOrderTest(OrderTest):
|
|||||||
self.assignRole('purchase_order.add')
|
self.assignRole('purchase_order.add')
|
||||||
|
|
||||||
url = reverse('api-po-list')
|
url = reverse('api-po-list')
|
||||||
huge_numer = 9223372036854775808
|
huge_number = 9223372036854775808
|
||||||
|
|
||||||
# too big
|
|
||||||
self.post(
|
self.post(
|
||||||
url,
|
url,
|
||||||
{
|
{
|
||||||
'supplier': 1,
|
'supplier': 1,
|
||||||
'reference': huge_numer,
|
'reference': huge_number,
|
||||||
'description': 'PO not created via the API',
|
'description': 'PO not created via the API',
|
||||||
},
|
},
|
||||||
expected_code=400
|
expected_code=201,
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_po_attachments(self):
|
def test_po_attachments(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user