Fix mocking time
When running on Centos the side_effect was returning a MagicMock object instead of the intended int. Change-Id: I73713a9a96dc415073a637d85a40304021f76072
This commit is contained in:
parent
50715acb18
commit
89e5927f7d
@ -717,7 +717,7 @@ class TestS3ApiMultiUpload(S3ApiTestCase):
|
|||||||
'Response Status': '201 Created',
|
'Response Status': '201 Created',
|
||||||
'Errors': [],
|
'Errors': [],
|
||||||
})])
|
})])
|
||||||
mock_time.return_value.time.side_effect = (
|
mock_time.time.side_effect = (
|
||||||
1, # start_time
|
1, # start_time
|
||||||
12, # first whitespace
|
12, # first whitespace
|
||||||
13, # second...
|
13, # second...
|
||||||
@ -769,7 +769,7 @@ class TestS3ApiMultiUpload(S3ApiTestCase):
|
|||||||
'Response Status': '400 Bad Request',
|
'Response Status': '400 Bad Request',
|
||||||
'Errors': [['some/object', '403 Forbidden']],
|
'Errors': [['some/object', '403 Forbidden']],
|
||||||
})])
|
})])
|
||||||
mock_time.return_value.time.side_effect = (
|
mock_time.time.side_effect = (
|
||||||
1, # start_time
|
1, # start_time
|
||||||
12, # first whitespace
|
12, # first whitespace
|
||||||
13, # second...
|
13, # second...
|
||||||
@ -818,7 +818,7 @@ class TestS3ApiMultiUpload(S3ApiTestCase):
|
|||||||
'Response Status': '400 Bad Request',
|
'Response Status': '400 Bad Request',
|
||||||
'Errors': [['some/object', '404 Not Found']],
|
'Errors': [['some/object', '404 Not Found']],
|
||||||
})])
|
})])
|
||||||
mock_time.return_value.time.side_effect = (
|
mock_time.time.side_effect = (
|
||||||
1, # start_time
|
1, # start_time
|
||||||
12, # first whitespace
|
12, # first whitespace
|
||||||
13, # second...
|
13, # second...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user