diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-04 09:46:09 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-04 09:46:09 +0800 |
commit | a4cb44676d4fde2dc0f172ab8c90811d9b16981c (patch) | |
tree | ddc7bfc4e388fe1bd9af86c348d086338aa00606 | |
parent | b21f397d129afef6bfb540eea8e7af3286ff0aa8 (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.py | 1 |
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")) |