aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-04 09:46:09 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-04 09:46:09 +0800
commita4cb44676d4fde2dc0f172ab8c90811d9b16981c (patch)
treeddc7bfc4e388fe1bd9af86c348d086338aa00606
parentb21f397d129afef6bfb540eea8e7af3286ff0aa8 (diff)
Update unit test for swagger
Change-Id: Ida65429da9806c14d5fe714cdab29a26cf57fe5e Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--catalog/swagger/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/catalog/swagger/tests.py b/catalog/swagger/tests.py
index d52fa847..fc51b628 100644
--- 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"))