File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ def show(self) -> Iterable[TestCase]:
18
18
for row in rows :
19
19
test_url = URL (row ['test' ])
20
20
21
- extract_all_scripts = row .get ('extract_all_scripts' , False )
21
+ try :
22
+ extract_all_scripts = row ['extract_all_scripts' ].value
23
+ except KeyError :
24
+ extract_all_scripts = False
25
+
22
26
yield TestCase (
23
27
test = f'{ test_url .name } #{ test_url .fragment } ' ,
24
28
input = URL (row ['input' ]),
Original file line number Diff line number Diff line change @@ -54,7 +54,10 @@ def test_expand(test_case: TestCase):
54
54
55
55
elif isinstance (test_case .result , Path ):
56
56
expected = yaml_ld .parse (test_case .result .read_text ())
57
- actual = yaml_ld .expand (test_case .input )
57
+ actual = yaml_ld .expand (
58
+ test_case .input ,
59
+ extract_all_scripts = test_case .extract_all_scripts ,
60
+ )
58
61
assert actual == expected
59
62
else :
60
63
raise ValueError (f'What to do with this test? { test_case } ' )
You can’t perform that action at this time.
0 commit comments