mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
ignore in coverage
This commit is contained in:
@ -18,12 +18,12 @@ def currency_code_default():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY')
|
code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY')
|
||||||
except ProgrammingError:
|
except ProgrammingError: # pragma: no cover
|
||||||
# database is not initialized yet
|
# database is not initialized yet
|
||||||
code = ''
|
code = ''
|
||||||
|
|
||||||
if code not in CURRENCIES:
|
if code not in CURRENCIES:
|
||||||
code = 'USD'
|
code = 'USD' # pragma: no cover
|
||||||
|
|
||||||
return code
|
return code
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user