mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
ignore coverage in exsisting migrations
This commit is contained in:
parent
898f99c931
commit
0ad3b5bcba
@ -23,7 +23,7 @@ def add_default_reference(apps, schema_editor):
|
||||
print(f"\nUpdated build reference for {count} existing BuildOrder objects")
|
||||
|
||||
|
||||
def reverse_default_reference(apps, schema_editor):
|
||||
def reverse_default_reference(apps, schema_editor): # pragma: no cover
|
||||
"""
|
||||
Do nothing! But we need to have a function here so the whole process is reversible.
|
||||
"""
|
||||
|
@ -12,7 +12,7 @@ def update_serials(apps, schema_editor):
|
||||
|
||||
StockItem = apps.get_model('stock', 'stockitem')
|
||||
|
||||
for item in StockItem.objects.all():
|
||||
for item in StockItem.objects.all(): # pragma: no cover
|
||||
|
||||
if item.serial is None:
|
||||
# Skip items without existing serial numbers
|
||||
@ -33,7 +33,7 @@ def update_serials(apps, schema_editor):
|
||||
item.save()
|
||||
|
||||
|
||||
def nupdate_serials(apps, schema_editor):
|
||||
def nupdate_serials(apps, schema_editor): # pragma: no cover
|
||||
"""
|
||||
Provided only for reverse migration compatibility
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user