From a19cf1f27ab54c4d291e06778d77c47db1e88c6a Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 11 Nov 2020 00:26:59 +1100 Subject: [PATCH] PEP fixes --- InvenTree/common/models.py | 1 - InvenTree/common/tests.py | 13 ------------- InvenTree/company/tests.py | 1 + 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index 4c184ad392..4ebd60e8b0 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -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 diff --git a/InvenTree/common/tests.py b/InvenTree/common/tests.py index 7aa0a3a894..96c6bdc093 100644 --- a/InvenTree/common/tests.py +++ b/InvenTree/common/tests.py @@ -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 diff --git a/InvenTree/company/tests.py b/InvenTree/company/tests.py index 1e57adcda3..24c7e3a20f 100644 --- a/InvenTree/company/tests.py +++ b/InvenTree/company/tests.py @@ -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 = [