2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

ignore controls that should not be reached in coverage

This commit is contained in:
Matthias
2022-02-13 05:50:19 +01:00
parent 7793a22a35
commit 42b4466897
3 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ class CategoryTest(TestCase):
with self.assertRaises(ValidationError) as err:
cat.full_clean()
cat.save()
cat.save() # pragma: no cover
self.assertIn('Illegal character in name', str(err.exception.error_dict.get('name')))