ignore coverage in exsisting migrations

This commit is contained in:
Matthias 2022-02-13 17:45:46 +01:00
parent 898f99c931
commit 0ad3b5bcba
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ def add_default_reference(apps, schema_editor):
print(f"\nUpdated build reference for {count} existing BuildOrder objects") 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. Do nothing! But we need to have a function here so the whole process is reversible.
""" """

View File

@ -12,7 +12,7 @@ def update_serials(apps, schema_editor):
StockItem = apps.get_model('stock', 'stockitem') 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: if item.serial is None:
# Skip items without existing serial numbers # Skip items without existing serial numbers
@ -33,7 +33,7 @@ def update_serials(apps, schema_editor):
item.save() item.save()
def nupdate_serials(apps, schema_editor): def nupdate_serials(apps, schema_editor): # pragma: no cover
""" """
Provided only for reverse migration compatibility Provided only for reverse migration compatibility
""" """