Skip to content

Commit 672c80d

Browse files
test for exact values in examples under tempo slot in linkml_issue_2224.yaml
Co-authored-by: Jonny Saunders <[email protected]>
1 parent 798591b commit 672c80d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_issues/test_issue_2224.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def test_issue_2224_slot_classes(self):
3636
)
3737

3838
# examples being overriden by slot_usage modification
39-
for example in cls.attributes["tempo"].examples:
40-
self.assertIn(example.value, ["120.0", "144.0", "126.8", "102.6"])
39+
assert cls.attributes["tempo"].examples == [Example(value='120.0'), Example(value='144.0'), Example(value='126.8'), Example(value='102.6')]
4140
# annotations being overriden by slot_usage modification
4241
self.assertEqual(
4342
cls.attributes["tempo"].annotations.expected_value.value,

0 commit comments

Comments
 (0)