Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
c94b1da1
Commit
c94b1da1
authored
4 years ago
by
Nathan Hertz
Browse files
Options
Downloads
Patches
Plain Diff
Fixed tests to work with CapabilityStep parsing changes
parent
9b766720
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!62
SWS-7: Finish "download" workflow template
Pipeline
#454
passed
4 years ago
Stage: build-dev
Stage: unit-test-dev
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/workspaces/test/test_capability_steps.py
+6
-6
6 additions, 6 deletions
shared/workspaces/test/test_capability_steps.py
with
6 additions
and
6 deletions
shared/workspaces/test/test_capability_steps.py
+
6
−
6
View file @
c94b1da1
...
...
@@ -13,15 +13,15 @@ def test_parse_workflow():
"""
Tests that CapabilityStep parsing works as intended
"""
step
=
CapabilityStep
.
from_str
(
"
prepare-and-run-workflow foo bar
"
)
step
=
CapabilityStep
.
from_str
(
"
prepare-and-run-workflow foo
[
bar
]
"
)
assert
isinstance
(
step
,
PrepareAndRunWorkflow
)
step
=
CapabilityStep
.
from_str
(
"
await-qa foo bar
"
)
step
=
CapabilityStep
.
from_str
(
"
await-qa foo
[
bar
]
"
)
assert
isinstance
(
step
,
AwaitQa
)
step
=
CapabilityStep
.
from_str
(
"
await-workflow foo bar
"
)
step
=
CapabilityStep
.
from_str
(
"
await-workflow foo
[
bar
]
"
)
assert
isinstance
(
step
,
AwaitWorkflow
)
step
=
CapabilityStep
.
from_str
(
"
await-product foo bar
"
)
step
=
CapabilityStep
.
from_str
(
"
await-product foo
[
bar
]
"
)
assert
isinstance
(
step
,
AwaitProduct
)
step
=
CapabilityStep
.
from_str
(
"
await-parameter foo bar
"
)
step
=
CapabilityStep
.
from_str
(
"
await-parameter foo
[
bar
]
"
)
assert
isinstance
(
step
,
AwaitParameter
)
step
=
CapabilityStep
.
from_str
(
"
await-large-alloc-approval foo bar
"
)
step
=
CapabilityStep
.
from_str
(
"
await-large-alloc-approval foo
[
bar
]
"
)
assert
isinstance
(
step
,
AwaitLargeAllocationApproval
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment