|
@@ -9,7 +9,6 @@ from unittest import TestCase
|
9
|
9
|
import unittest
|
10
|
10
|
|
11
|
11
|
from django.conf import settings
|
12
|
|
-from EditorialModel.components import EmComponentNotExistError
|
13
|
12
|
from EditorialModel.classes import EmClass
|
14
|
13
|
from EditorialModel.classtypes import EmClassType
|
15
|
14
|
from EditorialModel.fieldgroups import EmFieldGroup
|
|
@@ -104,7 +103,7 @@ class TestEmClassDeletion(ClassesTestCase):
|
104
|
103
|
|
105
|
104
|
try:
|
106
|
105
|
EM_TEST_OBJECT.component(test_class.uid)
|
107
|
|
- except EmComponentNotExistError:
|
|
106
|
+ except Exception:
|
108
|
107
|
self.fail("The class has been deleted but it has fieldgroups")
|
109
|
108
|
|
110
|
109
|
|