Skip to content
GitLab
Menu
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
168efef5
Commit
168efef5
authored
Jul 29, 2021
by
Wout De Nolf
Browse files
TestWorkflow10 remove unnecessary tests
parent
200f0f63
Pipeline
#51646
passed with stage
in 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pypushflow/test/test_workflow10.py
View file @
168efef5
...
...
@@ -76,44 +76,9 @@ class Workflow10(Workflow):
class
TestWorkflow10
(
unittest
.
TestCase
):
def
test_workflow10
_10
(
self
):
def
test_workflow10
(
self
):
limit
=
10
workflow10
=
Workflow10
(
"Test workflow {0}"
.
format
(
limit
))
inData
=
{
"value"
:
1
,
"limit"
:
limit
}
outData
=
workflow10
.
run
(
inData
)
self
.
assertEqual
(
outData
[
"value"
],
limit
)
def
test_workflow10_100
(
self
):
limit
=
100
workflow10
=
Workflow10
(
"Test workflow {0}"
.
format
(
limit
))
inData
=
{
"value"
:
1
,
"limit"
:
limit
}
outData
=
workflow10
.
run
(
inData
)
self
.
assertEqual
(
outData
[
"value"
],
limit
)
def
test_workflow10_200
(
self
):
limit
=
200
workflow10
=
Workflow10
(
"Test workflow {0}"
.
format
(
limit
))
inData
=
{
"value"
:
1
,
"limit"
:
limit
}
outData
=
workflow10
.
run
(
inData
)
self
.
assertEqual
(
outData
[
"value"
],
limit
)
def
test_workflow10_500
(
self
):
limit
=
500
workflow10
=
Workflow10
(
"Test workflow {0}"
.
format
(
limit
))
inData
=
{
"value"
:
1
,
"limit"
:
limit
}
outData
=
workflow10
.
run
(
inData
)
self
.
assertEqual
(
outData
[
"value"
],
limit
)
def
test_workflow10_1000
(
self
):
limit
=
1000
workflow10
=
Workflow10
(
"Test workflow {0}"
.
format
(
limit
))
inData
=
{
"value"
:
1
,
"limit"
:
limit
}
outData
=
workflow10
.
run
(
inData
)
self
.
assertEqual
(
outData
[
"value"
],
limit
)
def
test_workflow10_5000
(
self
):
limit
=
5000
workflow10
=
Workflow10
(
"Test workflow {0}"
.
format
(
limit
))
inData
=
{
"value"
:
1
,
"limit"
:
limit
}
outData
=
workflow10
.
run
(
inData
)
self
.
assertEqual
(
outData
[
"value"
],
limit
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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