Skip to content

Commit f7f30e4

Browse files
committed
update test to increase coverage
1 parent 4e83889 commit f7f30e4

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

asdf/_tests/test_util.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,12 @@ def test_load_yaml_recursion_with_tags(tagged):
137137
%YAML 1.1
138138
%TAG ! tag:stsci.edu:asdf/
139139
--- !core/asdf-1.1.0
140-
o: &id001 !transform/remap_axes-1.4.0
141-
inputs: [x0, x1]
142-
inverse: !transform/remap_axes-1.4.0
143-
inputs: [x0, x1, x2]
140+
o: &id001 !some/tag-1.0.0
141+
inverse: !some/tag-1.0.0
144142
inverse: *id001
145-
mapping: [2, 1]
146-
outputs: [x0, x1]
147-
mapping: [0, 1, 0]
148-
outputs: [x0, x1, x2]
143+
l: &id002 !some/tag-1.0.0
144+
- *id002
149145
..."""
150146
tree = util.load_yaml(io.BytesIO(contents), tagged=tagged)
151147
assert tree["o"] is tree["o"]["inverse"]["inverse"]
148+
assert tree["l"] is tree["l"][0]

0 commit comments

Comments
 (0)