Skip to content

Commit 344bf6f

Browse files
author
Rob Sanderson
committed
some more tests
1 parent 1c3c95d commit 344bf6f

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

lux-schema-test.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,32 @@
2424
)
2525

2626

27+
instance = "https://lux.collections.yale.edu/data/person/68e84c09-5159-4f8b-ae5c-0c9145d3b6fe"
2728
schemafn = os.path.join(schema_dir, f"person.json")
29+
30+
instance = "https://lux.collections.yale.edu/data/object/047181f4-2fdf-43fd-abbe-f16d7f9edc10"
31+
schemafn = os.path.join(schema_dir, f"object.json")
32+
33+
instance = "https://lux.collections.yale.edu/data/concept/b2f01ce2-339e-43d1-9dc6-68c728337b96"
34+
schemafn = os.path.join(schema_dir, f"concept.json")
35+
36+
instance = "https://lux.collections.yale.edu/data/group/ed771376-2583-41ce-a4fd-649320c72a42"
37+
schemafn = os.path.join(schema_dir, f"group.json")
38+
39+
instance = "https://lux.collections.yale.edu/data/set/82e98f20-01e9-47d9-95a3-5b0f2a31d17e"
40+
schemafn = os.path.join(schema_dir, f"set.json")
41+
42+
instance = "https://lux.collections.yale.edu/data/activity/291d650f-9052-45ba-a7d1-b7b75aa2a5bd"
43+
schemafn = os.path.join(schema_dir, f"event.json")
44+
45+
2846
fh = open(schemafn)
2947
schema = json.load(fh)
3048
fh.close()
3149
v = Draft202012Validator(schema, registry=registry)
3250

33-
instance = "https://lux.collections.yale.edu/data/person/68e84c09-5159-4f8b-ae5c-0c9145d3b6fe"
34-
3551
resp = requests.get(instance)
3652
data = resp.json()
37-
3853
allow_underscore_props = True
3954

4055
print("-"*120)

0 commit comments

Comments
 (0)