2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

remove coverage from parts migrations

This commit is contained in:
Matthias 2022-02-13 04:46:36 +01:00
parent 3ed836f19d
commit 10170b5466
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
3 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ import InvenTree.validators
import part.models import part.models
def attach_file(instance, filename): def attach_file(instance, filename): # pragma: no cover
""" """
Generate a filename for the uploaded attachment. Generate a filename for the uploaded attachment.

View File

@ -10,7 +10,7 @@ def update_tree(apps, schema_editor):
Part.objects.rebuild() Part.objects.rebuild()
def nupdate_tree(apps, schema_editor): def nupdate_tree(apps, schema_editor): # pragma: no cover
pass pass

View File

@ -33,7 +33,7 @@ def migrate_currencies(apps, schema_editor):
remap = {} remap = {}
for index, row in enumerate(results): for index, row in enumerate(results): # pragma: no cover
pk, suffix, description = row pk, suffix, description = row
suffix = suffix.strip().upper() suffix = suffix.strip().upper()
@ -57,7 +57,7 @@ def migrate_currencies(apps, schema_editor):
count = 0 count = 0
for index, row in enumerate(results): for index, row in enumerate(results): # pragma: no cover
pk, cost, currency_id, price, price_currency = row pk, cost, currency_id, price, price_currency = row
# Copy the 'cost' field across to the 'price' field # Copy the 'cost' field across to the 'price' field
@ -71,10 +71,10 @@ def migrate_currencies(apps, schema_editor):
count += 1 count += 1
if count > 0: if count > 0: # pragma: no cover
print(f"Updated {count} SupplierPriceBreak rows") print(f"Updated {count} SupplierPriceBreak rows")
def reverse_currencies(apps, schema_editor): def reverse_currencies(apps, schema_editor): # pragma: no cover
""" """
Reverse the "update" process. Reverse the "update" process.