Skip to content
Snippets Groups Projects
Commit b3c211d2 authored by Janet Goldstein's avatar Janet Goldstein
Browse files

WS-889: ensure that assigned DA and AOD, if any, are found in looked-up request

parent 00c67cd7
No related branches found
No related tags found
1 merge request!761WS-889: ensure that assigned DA and AOD, if any, are found in looked-up request
Pipeline #4239 passed
......@@ -19,6 +19,7 @@
Tests that test the view functionality of our capability request REST API.
The logic can be found in `capability/views/capability_request.py`.
"""
# pylint: disable=E0401
import http
......@@ -34,8 +35,6 @@ from pyramid.testing import DummyRequest
from workspaces.capability.enums import CapabilityRequestState
# pylint: disable=E0401
def test_view_capability_request(request_null_capability: DummyRequest):
"""
......@@ -50,6 +49,8 @@ def test_view_capability_request(request_null_capability: DummyRequest):
"capability_name": "null",
"id": 0,
"state": "Created",
"assigned_da": "ricardo",
"assigned_aod": "lucy",
}
request_null_capability.matchdict["capability_name"] = "null"
request_null_capability.matchdict["request_id"] = 0
......
......@@ -654,6 +654,8 @@ class CapabilityRequest(JSONSerializable):
"id": self.id,
"capability_name": self.capability_name,
"state": self.state,
"assigned_da": self.assigned_da,
"assigned_aod": self.assigned_aod,
"sealed": self.sealed,
"ingested": self.ingested,
"created_at": self.created_at.isoformat(),
......
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