Code Review
/
vfc
/
nfvo
/
catalog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b21f397
)
Update unit test for swagger
69/84169/1
author
fujinhua
<fu.jinhua@zte.com.cn>
Thu, 4 Apr 2019 01:46:09 +0000
(09:46 +0800)
committer
fujinhua
<fu.jinhua@zte.com.cn>
Thu, 4 Apr 2019 01:46:09 +0000
(09:46 +0800)
Change-Id: Ida65429da9806c14d5fe714cdab29a26cf57fe5e
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
catalog/swagger/tests.py
patch
|
blob
|
history
diff --git
a/catalog/swagger/tests.py
b/catalog/swagger/tests.py
index
d52fa84
..
fc51b62
100644
(file)
--- a/
catalog/swagger/tests.py
+++ b/
catalog/swagger/tests.py
@@
-25,3
+25,4
@@
class SwaggerViewTest(unittest.TestCase):
def test_swagger(self):
response = self.client.get("/api/catalog/v1/swagger.json")
self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
+ self.assertEqual("2.0", response.data.get("swagger"))