Merge "Fix mock order"

This commit is contained in:
Jenkins 2017-07-10 16:19:44 +00:00 committed by Gerrit Code Review
commit bb01507397
1 changed files with 3 additions and 3 deletions

View File

@ -162,11 +162,11 @@ class TasksTest(base.TestCase):
self.assertFalse(builder.success)
@mock.patch('os.utime')
@mock.patch('shutil.copyfile')
@mock.patch('shutil.rmtree')
@mock.patch('docker.APIClient')
@mock.patch('requests.get')
@mock.patch('shutil.rmtree')
@mock.patch('shutil.copyfile')
@mock.patch('os.utime')
def test_process_source(self, mock_get, mock_client,
mock_rmtree, mock_copyfile, mock_utime):
for source in [{'source': 'http://fake/source1', 'type': 'url',