summaryrefslogtreecommitdiff
path: root/lang/python/python-jsonschema-specifications/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/python-jsonschema-specifications/test.sh')
-rw-r--r--lang/python/python-jsonschema-specifications/test.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/python/python-jsonschema-specifications/test.sh b/lang/python/python-jsonschema-specifications/test.sh
new file mode 100644
index 000000000..cdf2f5710
--- /dev/null
+++ b/lang/python/python-jsonschema-specifications/test.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+[ "$1" = python3-jsonschema-specifications ] || exit 0
+
+python3 - << 'EOF'
+
+from jsonschema_specifications import REGISTRY as SPECIFICATIONS
+
+DRAFT202012_DIALECT_URI = "https://json-schema.org/draft/2020-12/schema"
+assert SPECIFICATIONS.contents(DRAFT202012_DIALECT_URI) != ""
+
+EOF