mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-17 18:26:32 +00:00
Add validation check to "Convert to Variant" form (#5583)
* Add validation check to "Convert to Variant" form - If a supplierpart is assigned, cannot convert stock item * Fix failing unit test
This commit is contained in:
@@ -154,7 +154,7 @@ class LabelTest(InvenTreeAPITestCase):
|
||||
# Test that each element has been rendered correctly
|
||||
self.assertIn(f"part: {part_pk} - {part_name}", content)
|
||||
self.assertIn(f'data: {{"part": {part_pk}}}', content)
|
||||
self.assertIn("http://testserver/part/1/", content)
|
||||
self.assertIn(f'http://testserver/part/{part_pk}/', content)
|
||||
self.assertIn("img/blank_image.png", content)
|
||||
self.assertIn("img/inventree.png", content)
|
||||
|
||||
|
Reference in New Issue
Block a user