Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LanderOtto committed Nov 27, 2023
1 parent b973338 commit ef99aa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion streamflow/deployment/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def get_binding_config(
return BindingConfig(
targets=targets,
filters=[
# tmp solution
FilterConfig(name=c.name, type=c.type, config=c.config)
for c in config.get("filters")
],
Expand Down
10 changes: 2 additions & 8 deletions tests/test_persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,7 @@ async def test_schedule_step(context: StreamFlowContext):
workdir=utils.random_name(),
),
],
filters=[
FilterConfig(
config={"hello": "world"}, name=utils.random_name(), type="shuffle"
)
],
filters=[FilterConfig(config={}, name=utils.random_name(), type="shuffle")],
)
connector_ports = {
target.deployment.name: workflow.create_port(ConnectorPort)
Expand Down Expand Up @@ -337,9 +333,7 @@ async def test_iteration_termination_token(context: StreamFlowContext):
@pytest.mark.asyncio
async def test_filter_config(context: StreamFlowContext):
"""Test saving and loading filter configuration from database"""
config = FilterConfig(
config={"hello": "world"}, name=utils.random_name(), type="shuffle"
)
config = FilterConfig(config={}, name=utils.random_name(), type="shuffle")
await save_load_and_test(config, context)


Expand Down

0 comments on commit ef99aa4

Please sign in to comment.