Skip to content

Commit 00bfb71

Browse files
Merge pull request #428 from OP-TED/feature/TED-1191
updated XPATH coverage service to support not-based XPATHs
2 parents df29c7c + 2909e1e commit 00bfb71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ted_sws/notice_validator/adapters/xpath_coverage_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def based_xpaths(cls, xpaths: List[str], base_xpath: str) -> List[str]:
103103
:param base_xpath:
104104
:return:
105105
"""
106-
base_xpath += "/"
106+
base_xpath += "/" if not base_xpath.endswith("/") else ""
107107
return list(filter(lambda xpath: xpath.startswith(base_xpath), xpaths))
108108

109109
def coverage_notice_xpath(self, notices: List[Notice], mapping_suite_id) -> XPATHCoverageValidationReport:

0 commit comments

Comments
 (0)