aboutsummaryrefslogtreecommitdiffstats
path: root/api/tests/test_validators.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/tests/test_validators.py')
-rw-r--r--api/tests/test_validators.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/tests/test_validators.py b/api/tests/test_validators.py
index c2bb412b..51f02412 100644
--- a/api/tests/test_validators.py
+++ b/api/tests/test_validators.py
@@ -10,6 +10,10 @@ REQUIRED_KEYS = (
class TagEmbedValidatorTests(TestCase):
+ def test_rejects_non_mapping(self):
+ with self.assertRaises(ValidationError):
+ validate_tag_embed('non-empty non-mapping')
+
def test_rejects_missing_required_keys(self):
with self.assertRaises(ValidationError):
validate_tag_embed({