Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cdisc_rules_engine/operations/get_xhtml_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def _execute_operation(self):
return dataset[target].apply(self._ensure_dataset_is_valid_xhtml)

def _ensure_dataset_is_valid_xhtml(self, value: str) -> list[str]:
value: str = value.strip()
if not value:
return []

Expand Down
10 changes: 10 additions & 0 deletions tests/unit/test_operations/test_get_xhtml_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@
"invalid-namespace",
SchemaNotFoundError,
),
( # null value
"target",
PandasDataset.from_records(
[
{"target": None}, # noqa: E501
]
),
"http://www.cdisc.org/ns/usdm/xhtml/v1.0",
[[]],
),
],
)
def test_get_xhtml_errors(
Expand Down
Loading