Skip to content

Commit b0f5ff7

Browse files
Kolea PLESCOKolea PLESCO
authored andcommitted
updates xpath validator
1 parent be2814f commit b0f5ff7

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

ted_sws/notice_validator/adapters/xpath_coverage_runner.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from ted_sws.core.model.notice import Notice
1111
from ted_sws.core.model.transform import MappingXPATH, MappingSuite
1212
from ted_sws.core.model.validation_report import ReportNotice
13-
from ted_sws.data_sampler.services.notice_xml_indexer import index_notice
1413
from ted_sws.mapping_suite_processor.adapters.mapping_suite_reader import MappingSuiteReader
1514
from ted_sws.notice_transformer.services.notice_transformer import transform_report_notices
1615
from ted_sws.notice_validator.resources.templates import TEMPLATE_METADATA_KEY
@@ -34,12 +33,6 @@ def __init__(self, mapping_suite: MappingSuite):
3433
self.mapping_suite_id = mapping_suite.get_mongodb_id()
3534
self.init_xpath_data(mapping_suite=mapping_suite)
3635

37-
@classmethod
38-
def notice_xpaths(cls, notice: Notice) -> List[str]:
39-
if not notice.xml_metadata or not notice.xml_metadata.unique_xpaths:
40-
notice = index_notice(notice)
41-
return notice.xml_metadata.unique_xpaths
42-
4336
def init_xpath_data(self, mapping_suite: MappingSuite):
4437
for cm_xpath in MappingSuiteReader.read_mapping_suite_xpaths(mapping_suite):
4538
self.conceptual_xpaths.add(cm_xpath.xpath)

0 commit comments

Comments
 (0)