incorrect name in unit test

Incorrect name would mislead new developer.

Change-Id: I6ea228035df4437162b6c559ebb7bfb16853c520
This commit is contained in:
sue
2021-01-26 09:39:30 +08:00
parent 204b276693
commit ec21898978
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)