mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix docstrings
This commit is contained in:
parent
5dcb84ec0f
commit
4cde888be6
@ -184,10 +184,9 @@ class TestAdditionalLineMigration(MigratorTestCase):
|
|||||||
received=1
|
received=1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def test_po_migration(self):
|
||||||
def test_ref_field(self):
|
|
||||||
"""
|
"""
|
||||||
Test that the 'reference_int' field has been created and is filled out correctly
|
Test that the the PO lines where converted correctly
|
||||||
"""
|
"""
|
||||||
|
|
||||||
PurchaseOrder = self.new_state.apps.get_model('order', 'purchaseorder')
|
PurchaseOrder = self.new_state.apps.get_model('order', 'purchaseorder')
|
||||||
@ -196,7 +195,5 @@ class TestAdditionalLineMigration(MigratorTestCase):
|
|||||||
|
|
||||||
po = PurchaseOrder.objects.get(reference=f"{ii}-abcde")
|
po = PurchaseOrder.objects.get(reference=f"{ii}-abcde")
|
||||||
|
|
||||||
# The integer reference field must have been correctly updated
|
|
||||||
self.assertEqual(po.extra_lines.count(), 1)
|
self.assertEqual(po.extra_lines.count(), 1)
|
||||||
self.assertEqual(po.lines.count(), 1)
|
self.assertEqual(po.lines.count(), 1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user