fix: refine subflow field filtering to include '|' character check (#4277)

* Refine subflow field filtering to include '|' character check

* Add resource cleanup in test_components_path to ensure proper closure

* Remove unnecessary try-finally block in test_cli.py

* Remove unused pytest fixture decorator from test_components_path function

* Update test duration tracking in backend tests
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-10-25 10:10:41 -03:00 • committed by GitHub
commit ee101e643c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 602 additions and 426 deletions

View file

@ -90,7 +90,7 @@ class SubFlowComponent(Component):
async def generate_results(self) -> list[Data]:
tweaks: dict = {}
for field in self._attributes:
if field != "flow_name":
if field != "flow_name" and "|" in field:
[node, name] = field.split("|")
if node not in tweaks:
tweaks[node] = {}