Skip to content
Snippets Groups Projects
Commit b8813e41 authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Fixing capability test with casa_recipe field

parent bea16da9
No related branches found
No related tags found
2 merge requests!1706merge 2.8.4 to main,!1670WS-1405 CASA matrix service
Pipeline #15922 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment