Browse Source

Update test_models.py

pull/1349/head
Hironsan 3 years ago
parent
commit
9774d301ef
1 changed files with 8 additions and 2 deletions
  1. 10
      backend/api/tests/test_models.py

10
backend/api/tests/test_models.py

@ -92,7 +92,10 @@ class TestLabel(TestCase):
label = Label(project=project,
text='example',
suffix_key='a')
label.full_clean()
try:
label.full_clean()
except ValidationError:
self.fail(msg=ValidationError)
def test_can_add_label_suffix_key_with_prefix_key(self):
project = mommy.make('Project')
@ -100,7 +103,10 @@ class TestLabel(TestCase):
text='example',
prefix_key='ctrl',
suffix_key='a')
label.full_clean()
try:
label.full_clean()
except ValidationError:
self.fail(msg=ValidationError)
class TestDocumentAnnotation(TestCase):

Loading…
Cancel
Save