File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
3+ import warnings
34
45def test_local (pepper_client , session_minion_id ):
56 assert pepper_client .local ('*' , 'test.ping' )['return' ][0 ][session_minion_id ] is True
67
78
89def test_local_with_tgt_type (pepper_client , session_minion_id ):
10+ warnings .warn (UserWarning (str (pepper_client .local ('*' , 'test.ping' , tgt_type = 'list' )['return' ])))
11+ warnings .warn (UserWarning (str (pepper_client .local (session_minion_id , 'test.ping' , tgt_type = 'list' )['return' ])))
912 assert pepper_client .local ('*' , 'test.ping' , tgt_type = 'list' )['return' ][0 ][session_minion_id ] is False
1013 assert pepper_client .local (session_minion_id , 'test.ping' , tgt_type = 'list' )['return' ][0 ][session_minion_id ] is True
1114
1215
1316def test_local_with_deprecated_expr_form (pepper_client , session_minion_id ):
17+ warnings .warn (UserWarning (str (pepper_client .local ('*' , 'test.ping' , expr_form = 'list' )['return' ][0 ])))
18+ warnings .warn (UserWarning (str (pepper_client .local (session_minion_id , 'test.ping' , expr_form = 'list' )['return' ])))
1419 assert pepper_client .local ('*' , 'test.ping' , expr_form = 'list' )['return' ][0 ][session_minion_id ] is False
15- assert pepper_client .local (session_minion_id , 'test.ping' , expr_form = 'list' )['return' ][0 ][session_minion_id ] is True
20+ r = pepper_client .local (session_minion_id , 'test.ping' , expr_form = 'list' )['return' ][0 ][session_minion_id ]
21+ assert r is True
You can’t perform that action at this time.
0 commit comments