2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-07-09 16:41:25 +00:00

Remove coupling of tests to cui (#8389)

* remove coupling of tests to cui

* all testing for PUI absolute urls

* remove overlapping test

* refactor middleware check

* move static things into global

* factor out test target

* re-add api exception

* keep using settings.js for now
This commit is contained in:
Matthias Mair
2024-11-08 09:36:33 +01:00
committed by GitHub
parent 8f24119f29
commit cd9f491dc6
12 changed files with 63 additions and 51 deletions
+5
View File
@@ -46,6 +46,11 @@ class OrderTest(TestCase):
self.assertEqual(
order.get_absolute_url(), f'/order/purchase-order/{pk}/'
)
else:
self.assertEqual(
order.get_absolute_url(),
f'/platform/purchasing/purchase-order/{pk}',
)
self.assertEqual(order.reference, f'PO-{pk:04d}')