Modified input format of instructions for ParsingFlowGenerator. Previous dict wouldn't allow for more than one SecondaryFeaturesFieldInstructions class pointer.
This commit is contained in:
parent
2b249063e0
commit
def858ef6a
2 changed files with 19 additions and 14 deletions
|
|
@ -2730,15 +2730,15 @@ def test_parsing_flow_fails_for_unrelated_html(unrelated_html):
|
|||
|
||||
def test_parsing_flow_generator_returns_proper_flows():
|
||||
|
||||
four_instructions_with_params = {
|
||||
ReferenciaFieldInstructions: {},
|
||||
PrecioFieldInstructions: {},
|
||||
TamanoCategoricoFieldInstructions: {},
|
||||
SecondaryFeaturesFieldInstructions: {
|
||||
"field_name": "personal",
|
||||
"search_keyword": "Personal",
|
||||
},
|
||||
}
|
||||
four_instructions_with_params = (
|
||||
(ReferenciaFieldInstructions, {}),
|
||||
(PrecioFieldInstructions, {}),
|
||||
(TamanoCategoricoFieldInstructions, {}),
|
||||
(
|
||||
SecondaryFeaturesFieldInstructions,
|
||||
{"field_name": "personal", "search_keyword": "Personal"},
|
||||
),
|
||||
)
|
||||
|
||||
parsing_flow_generator = ParsingFlowGenerator(
|
||||
parsing_flow_class=ParsingFlow,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue