Browse Source

Fix unit test error

Fix the order of decorators and parameters for
karbor.protection.manager.ProtectionServiceTest in unittest.

Change-Id: I9d58c33787e0b2039a046ea30c7238485a76af2d
changes/10/694210/3
shenxindi 1 year ago
parent
commit
d1052b68eb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      karbor/tests/unit/protection/test_manager.py

+ 2
- 2
karbor/tests/unit/protection/test_manager.py View File

@ -221,8 +221,8 @@ class ProtectionServiceTest(base.TestCase):
@mock.patch.object(provider.ProviderRegistry, 'show_provider')
@mock.patch.object(fakes.FakeCheckpointCollection, 'get')
def test_show_checkpoint_not_found(self, mock_provider,
mock_cp_collection_get):
def test_show_checkpoint_not_found(self, mock_cp_collection_get,
mock_provider):
mock_provider.return_value = fakes.FakeProvider()
context = mock.MagicMock()
mock_cp_collection_get.side_effect = exception.CheckpointNotFound(


Loading…
Cancel
Save