File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ def test_split_servers(get_cluster_info):
2525 }
2626 backend ._lib .Client = Mock ()
2727 assert backend ._cache
28- get_cluster_info .assert_called_once_with ('h' , '0' )
29- backend ._lib .Client .assert_called_once_with (servers )
28+ get_cluster_info .assert_called_once_with ('h' , '0' , None )
29+ backend ._lib .Client .assert_called_once_with (servers , ignore_exc = True )
3030
3131
3232@patch ('django.conf.settings' , global_settings )
@@ -44,11 +44,11 @@ def test_node_info_cache(get_cluster_info):
4444 backend .get ('key1' )
4545 backend .set ('key2' , 'val' )
4646 backend .get ('key2' )
47- backend ._lib .Client .assert_called_once_with (servers )
47+ backend ._lib .Client .assert_called_once_with (servers , ignore_exc = True )
4848 eq_ (backend ._cache .get .call_count , 2 )
4949 eq_ (backend ._cache .set .call_count , 2 )
5050
51- get_cluster_info .assert_called_once_with ('h' , '0' )
51+ get_cluster_info .assert_called_once_with ('h' , '0' , None )
5252
5353
5454@patch ('django.conf.settings' , global_settings )
You can’t perform that action at this time.
0 commit comments