Skip to content

Commit 4059d0d

Browse files
Test is now green
1 parent a6b4cd7 commit 4059d0d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

ldtest/facets.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ def show(self) -> Iterable[TestCase]:
1818
for row in rows:
1919
test_url = URL(row['test'])
2020

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+
2226
yield TestCase(
2327
test=f'{test_url.name}#{test_url.fragment}',
2428
input=URL(row['input']),

tests/test_specification.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ def test_expand(test_case: TestCase):
5454

5555
elif isinstance(test_case.result, Path):
5656
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+
)
5861
assert actual == expected
5962
else:
6063
raise ValueError(f'What to do with this test? {test_case}')

0 commit comments

Comments
 (0)