mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 21:15:41 +00:00
fix assertations
This commit is contained in:
@ -23,12 +23,7 @@ import PIL
|
|||||||
import common.validators
|
import common.validators
|
||||||
from common.settings import get_global_setting, set_global_setting
|
from common.settings import get_global_setting, set_global_setting
|
||||||
from InvenTree.helpers import str2bool
|
from InvenTree.helpers import str2bool
|
||||||
from InvenTree.unit_test import (
|
from InvenTree.unit_test import InvenTreeAPITestCase, InvenTreeTestCase, PluginMixin
|
||||||
AdminTestCase,
|
|
||||||
InvenTreeAPITestCase,
|
|
||||||
InvenTreeTestCase,
|
|
||||||
PluginMixin,
|
|
||||||
)
|
|
||||||
from part.models import Part
|
from part.models import Part
|
||||||
from plugin import registry
|
from plugin import registry
|
||||||
from plugin.models import NotificationUserSetting
|
from plugin.models import NotificationUserSetting
|
||||||
@ -1680,11 +1675,3 @@ class CustomStatusTest(TestCase):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
instance.__str__(), 'Stock Item (StockStatus): OK - advanced | 11 (10)'
|
instance.__str__(), 'Stock Item (StockStatus): OK - advanced | 11 (10)'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class AdminTest(AdminTestCase):
|
|
||||||
"""Tests for the admin interface integration."""
|
|
||||||
|
|
||||||
def test_admin(self):
|
|
||||||
"""Test the admin URL."""
|
|
||||||
self.helper(model=Attachment)
|
|
||||||
|
@ -4,8 +4,8 @@ import os
|
|||||||
|
|
||||||
from django.core.files.base import ContentFile
|
from django.core.files.base import ContentFile
|
||||||
|
|
||||||
from importer.models import DataImportRow, DataImportSession
|
from importer.models import DataImportSession
|
||||||
from InvenTree.unit_test import AdminTestCase, InvenTreeTestCase
|
from InvenTree.unit_test import InvenTreeTestCase
|
||||||
|
|
||||||
|
|
||||||
class ImporterMixin:
|
class ImporterMixin:
|
||||||
|
Reference in New Issue
Block a user