From 61aae3d07452668924d1c28700f8ea82d069e139 Mon Sep 17 00:00:00 2001 From: shanyunfan Date: Thu, 25 May 2023 13:49:35 +0800 Subject: [PATCH] Supplement a unit test case for 'get_resources' the test case for api.extensions.ExtensionDescriptor Change-Id: I36f817b46a55de63ec51ae8995e053cd7ed5253f --- venus/tests/unit/api/test_extensions.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/venus/tests/unit/api/test_extensions.py b/venus/tests/unit/api/test_extensions.py index 591b253..85e6558 100644 --- a/venus/tests/unit/api/test_extensions.py +++ b/venus/tests/unit/api/test_extensions.py @@ -13,10 +13,15 @@ # under the License. import unittest -from venus.api import extensions +from venus.api.extensions import ExtensionDescriptor +from venus.api.extensions import ExtensionManager class TestExtensions(unittest.TestCase): def setUp(self): - self.extensions = extensions + self.extension_descriptor = ExtensionDescriptor(ExtensionManager()) super(TestExtensions, self).setUp() + + def test_get_resources(self): + result = self.extension_descriptor.get_resources() + self.assertEqual(result, [])