Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
workflow
pypushflow
Commits
57a5ff1e
Commit
57a5ff1e
authored
Apr 07, 2020
by
payno
Browse files
[ci] rework pythonActorTest to take a dictionary as input.
parent
2001aef6
Changes
1
Hide whitespace changes
Inline
Side-by-side
pypushflow/test/pythonActorTest.py
View file @
57a5ff1e
...
...
@@ -25,10 +25,10 @@ __date__ = "28/05/2019"
import
time
def
run
(
name
,
**
kwargs
):
def
run
(
input_
,
**
kwargs
):
time
.
sleep
(
5
)
reply
=
None
if
name
is
not
None
:
if
'name'
in
input_
and
input_
[
'name'
]
is
not
None
:
name
=
input_
[
'name'
]
reply
=
'Hello '
+
name
+
'!'
return
{
'reply'
:
reply
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment