mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
PEP fixes
This commit is contained in:
parent
4dff18e4a6
commit
a19cf1f27a
@ -13,7 +13,6 @@ from django.conf import settings
|
|||||||
|
|
||||||
import djmoney.settings
|
import djmoney.settings
|
||||||
from djmoney.models.fields import MoneyField
|
from djmoney.models.fields import MoneyField
|
||||||
from djmoney.money import Money
|
|
||||||
from djmoney.contrib.exchange.models import convert_money
|
from djmoney.contrib.exchange.models import convert_money
|
||||||
from djmoney.contrib.exchange.exceptions import MissingRate
|
from djmoney.contrib.exchange.exceptions import MissingRate
|
||||||
|
|
||||||
|
@ -7,19 +7,6 @@ from django.contrib.auth import get_user_model
|
|||||||
from .models import InvenTreeSetting
|
from .models import InvenTreeSetting
|
||||||
|
|
||||||
|
|
||||||
class CurrencyTest(TestCase):
|
|
||||||
""" Tests for Currency model """
|
|
||||||
|
|
||||||
fixtures = [
|
|
||||||
'currency',
|
|
||||||
]
|
|
||||||
|
|
||||||
def test_currency(self):
|
|
||||||
# Simple test for now (improve this later!)
|
|
||||||
|
|
||||||
self.assertEqual(Currency.objects.count(), 2)
|
|
||||||
|
|
||||||
|
|
||||||
class SettingsTest(TestCase):
|
class SettingsTest(TestCase):
|
||||||
"""
|
"""
|
||||||
Tests for the 'settings' model
|
Tests for the 'settings' model
|
||||||
|
@ -9,6 +9,7 @@ from part.models import Part
|
|||||||
from InvenTree.exchange import InvenTreeManualExchangeBackend
|
from InvenTree.exchange import InvenTreeManualExchangeBackend
|
||||||
from djmoney.contrib.exchange.models import Rate
|
from djmoney.contrib.exchange.models import Rate
|
||||||
|
|
||||||
|
|
||||||
class CompanySimpleTest(TestCase):
|
class CompanySimpleTest(TestCase):
|
||||||
|
|
||||||
fixtures = [
|
fixtures = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user