Skip to content

Commit 1289307

Browse files
committed
fixed feature test
1 parent 76af177 commit 1289307

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/features/notice_metadata_processor/test_notice_extractor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from pytest_bdd import scenario, given, when, then, parsers
22

33
from ted_sws.notice_metadata_processor.model.metadata import ExtractedMetadata
4-
from ted_sws.notice_metadata_processor.services.xml_manifestation_metadata_extractor import XMLManifestationMetadataExtractor
4+
55
from ted_sws.notice_fetcher.adapters.ted_api import TedRequestAPI, TedAPIAdapter
66
from ted_sws.notice_fetcher.services.notice_fetcher import NoticeFetcher
7+
from ted_sws.notice_metadata_processor.services.metadata_normalizer import \
8+
find_metadata_extractor_based_on_xml_manifestation
79

810

911
@scenario('notice_extractor.feature', 'Extracting metadata')
@@ -22,7 +24,7 @@ def step_impl(notice_identifier, api_end_point, fake_notice_storage):
2224

2325
@when("the extracting process is executed", target_fixture="extracted_metadata")
2426
def step_impl(xml_manifestation):
25-
return XMLManifestationMetadataExtractor(xml_manifestation=xml_manifestation).to_metadata()
27+
return find_metadata_extractor_based_on_xml_manifestation(xml_manifestation=xml_manifestation).extract_metadata()
2628

2729

2830
@then(parsers.parse("extracted {metadata} is possibly available"))

0 commit comments

Comments
 (0)