From ec218989785f1c8775a113928fae18e5cc30289a Mon Sep 17 00:00:00 2001 From: sue Date: Tue, 26 Jan 2021 09:39:30 +0800 Subject: [PATCH] incorrect name in unit test Incorrect name would mislead new developer. Change-Id: I6ea228035df4437162b6c559ebb7bfb16853c520 --- watcher/tests/applier/test_rpcapi.py | 2 +- watcher/tests/applier/test_sync.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/watcher/tests/applier/test_rpcapi.py b/watcher/tests/applier/test_rpcapi.py index 4885b7150..cd9f48406 100644 --- a/watcher/tests/applier/test_rpcapi.py +++ b/watcher/tests/applier/test_rpcapi.py @@ -40,7 +40,7 @@ class TestApplierAPI(base.TestCase): 'check_api_version', api_version=rpcapi.ApplierAPI().API_VERSION) - def test_execute_audit_without_error(self): + def test_execute_action_plan_without_error(self): with mock.patch.object(om.RPCClient, 'cast') as mock_cast: action_plan_uuid = utils.generate_uuid() self.api.launch_action_plan(self.context, action_plan_uuid) diff --git a/watcher/tests/applier/test_sync.py b/watcher/tests/applier/test_sync.py index 126055bf1..4ca41b7ec 100644 --- a/watcher/tests/applier/test_sync.py +++ b/watcher/tests/applier/test_sync.py @@ -83,4 +83,4 @@ class TestCancelOngoingActionPlans(db_base.DbTestCase): m_action_list.assert_called() m_plan_save.assert_called() m_action_save.assert_called() - self.assertEqual(self.action.state, objects.audit.State.CANCELLED) + self.assertEqual(self.action.state, objects.action.State.CANCELLED)