mirror of
https://github.com/ovh/python-ovh.git
synced 2026-01-17 07:09:55 +00:00
fix tests under python 3 where kwargs order in non deterministic
Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@ovh.net>
This commit is contained in:
parent
abdc173931
commit
be9d52ca8c
1 changed files with 4 additions and 1 deletions
|
|
@ -162,7 +162,10 @@ class testClient(unittest.TestCase):
|
|||
m_call.reset_mock()
|
||||
api = Client(ENDPOINT, APPLICATION_KEY, APPLICATION_SECRET, CONSUMER_KEY)
|
||||
self.assertEqual(m_call.return_value, api.get(FAKE_URL, _from="start", to="end"))
|
||||
m_call.assert_called_once_with('GET', FAKE_URL+'?to=end&from=start', None, True)
|
||||
try:
|
||||
m_call.assert_called_once_with('GET', FAKE_URL+'?to=end&from=start', None, True)
|
||||
except:
|
||||
m_call.assert_called_once_with('GET', FAKE_URL+'?from=start&to=end', None, True)
|
||||
|
||||
|
||||
@mock.patch.object(Client, 'call')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue