mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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
|
||||
from djmoney.models.fields import MoneyField
|
||||
from djmoney.money import Money
|
||||
from djmoney.contrib.exchange.models import convert_money
|
||||
from djmoney.contrib.exchange.exceptions import MissingRate
|
||||
|
||||
|
@ -7,19 +7,6 @@ from django.contrib.auth import get_user_model
|
||||
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):
|
||||
"""
|
||||
Tests for the 'settings' model
|
||||
|
@ -9,6 +9,7 @@ from part.models import Part
|
||||
from InvenTree.exchange import InvenTreeManualExchangeBackend
|
||||
from djmoney.contrib.exchange.models import Rate
|
||||
|
||||
|
||||
class CompanySimpleTest(TestCase):
|
||||
|
||||
fixtures = [
|
||||
|
Loading…
Reference in New Issue
Block a user