2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 13:10:57 +00:00

Fixes for unit tests

This commit is contained in:
Oliver Walters
2021-01-29 12:47:46 +11:00
parent 4ef6a6dc62
commit 8fda2cf745
3 changed files with 11 additions and 6 deletions

View File

@ -1114,7 +1114,7 @@ class StockAdjust(AjaxView, FormMixin):
return self.do_delete()
else:
return 'No action performed'
return _('No action performed')
def do_add(self):
@ -1129,7 +1129,7 @@ class StockAdjust(AjaxView, FormMixin):
count += 1
return _("Added stock to {n} items".format(n=count))
return f"{_('Added stock to ')} {count} {_('items')}"
def do_take(self):
@ -1144,7 +1144,7 @@ class StockAdjust(AjaxView, FormMixin):
count += 1
return _("Removed stock from {n} items".format(n=count))
return f"{_('Removed stock from ')} {count} {_('items')}"
def do_count(self):