Skip to content

Commit e1b439a

Browse files
committed
fix(tests): string concatenation and formatting
- Fixed incorrect string concatenation in test_commands.py. - Updated old-style string formatting to f-strings in workflow.py. - Adjusted literal string formatting in test_dataflow.py for consistency. Signed-off-by: Yves Bastide <[email protected]>
1 parent 9080679 commit e1b439a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/integration/test_commands.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_simpleflow_idempotent(self):
110110
if (
111111
e["eventType"] == "ActivityTaskScheduled"
112112
and e["activityTaskScheduledEventAttributes"]["activityType"]["name"]
113-
== "tests.integration.workflow" ".get_uuid"
113+
== "tests.integration.workflow.get_uuid"
114114
)
115115
]
116116
expect(activities).should.have.length_of(2)

tests/test_simpleflow/test_dataflow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ def test_workflow_activity_raises_on_failure(mock_decref_workflow):
11761176

11771177
workflow_failed = simpleflow.swf.mapper.models.decision.WorkflowExecutionDecision()
11781178
workflow_failed.fail(
1179-
reason="Workflow execution error in " "activity-tests.data.activities.raise_on_failure: " '"error"',
1179+
reason='Workflow execution error in activity-tests.data.activities.raise_on_failure: "error"',
11801180
details=builder.DEFAULT_DETAILS,
11811181
)
11821182

0 commit comments

Comments
 (0)