Skip to content

Commit

Permalink
Merge pull request #428 from OP-TED/feature/TED-1191
Browse files Browse the repository at this point in the history
updated XPATH coverage service to support not-based XPATHs
  • Loading branch information
CaptainOfHacks authored Feb 7, 2023
2 parents df29c7c + 2909e1e commit 00bfb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ted_sws/notice_validator/adapters/xpath_coverage_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def based_xpaths(cls, xpaths: List[str], base_xpath: str) -> List[str]:
:param base_xpath:
:return:
"""
base_xpath += "/"
base_xpath += "/" if not base_xpath.endswith("/") else ""
return list(filter(lambda xpath: xpath.startswith(base_xpath), xpaths))

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

0 comments on commit 00bfb71

Please sign in to comment.