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
Admin message
NRAO Gitlab has been upgraded to version 17.10
Show more breadcrumbs
ssa
workspaces
Commits
b8813e41
Commit
b8813e41
authored
10 months ago
by
Daniel Nemergut
Browse files
Options
Downloads
Patches
Plain Diff
Fixing capability test with casa_recipe field
parent
bea16da9
No related branches found
No related tags found
2 merge requests
!1706
merge 2.8.4 to main
,
!1670
WS-1405 CASA matrix service
Pipeline
#15922
passed
10 months ago
Stage: pull-db
Stage: build
Stage: unit-test
Stage: .post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/capability/test/test_capability_views.py
+3
-1
3 additions, 1 deletion
services/capability/test/test_capability_views.py
with
3 additions
and
1 deletion
services/capability/test/test_capability_views.py
+
3
−
1
View file @
b8813e41
...
...
@@ -20,8 +20,8 @@ Tests that test the view functionality of our capability REST API.
The logic can be found in `capability/views/capability.py`.
"""
import
http
import
pytest
import
pytest
from
pyramid.config
import
Configurator
from
pyramid.httpexceptions
import
(
HTTPBadRequest
,
...
...
@@ -52,6 +52,7 @@ def test_view_capability(test_config: Configurator, request_null_capability: Dum
"
single_version_only
"
:
None
,
"
paused
"
:
False
,
"
state_machine
"
:
"
None
"
,
"
casa_recipe
"
:
None
,
}
request_null_capability
.
matchdict
[
"
capability_name
"
]
=
"
null
"
response
=
view_capability
(
request_null_capability
)
...
...
@@ -131,6 +132,7 @@ def test_create_capability(test_config: Configurator, request_null_capability: D
"
single_version_only
"
:
None
,
"
paused
"
:
False
,
"
state_machine
"
:
"
simple
"
,
"
casa_recipe
"
:
None
,
}
assert
response
.
json_body
==
expected_response
# Assert test capability has been added to list of capabilities (mocked)
...
...
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