File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -214,12 +214,13 @@ def test_search(self):
214
214
215
215
def test_login (self ):
216
216
self .client .login ('sakuya' , 'izayoi' )
217
- fake_request .assert_called_with (
218
- 'POST' , url_prefix + 'auth' ,
219
- data = json .dumps ({'username' : 'sakuya' , 'password' : 'izayoi' }),
220
- timeout = DEFAULT_TIMEOUT_SECONDS ,
221
- headers = {'Content-Type' : 'application/json' }
222
- )
217
+ args = fake_request .call_args
218
+ assert args [0 ][0 ] == 'POST'
219
+ assert args [0 ][1 ] == url_prefix + 'auth'
220
+ assert json .loads (args [1 ]['data' ]) == {
221
+ 'username' : 'sakuya' , 'password' : 'izayoi'
222
+ }
223
+ assert args [1 ]['headers' ] == {'Content-Type' : 'application/json' }
223
224
224
225
assert self .client ._auth_configs ['auths' ] == {
225
226
'docker.io' : {
You can’t perform that action at this time.
0 commit comments