File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 77
88import click
99import mock
10+ # from unittest.mock import MagicMock
1011
1112from SoftLayer .CLI import environment
1213from SoftLayer import testing
@@ -56,13 +57,13 @@ def test_getpass(self, prompt_mock):
5657 self .assertEqual (prompt_mock (), r )
5758
5859 @mock .patch ('click.prompt' )
59- @mock .patch ('tkinter.Tk.clipboard_get ' )
60+ @mock .patch ('tkinter.Tk' )
6061 def test_getpass_issues1436 (self , tk , prompt_mock ):
61- tk .return_value = 'test_from_clipboard'
6262 prompt_mock .return_value = 'àR'
6363 r = self .env .getpass ('input' )
6464 prompt_mock .assert_called_with ('input' , default = None , hide_input = True )
65- self .assertEqual ('test_from_clipboard' , r )
65+ tk .assert_called_with ()
66+
6667
6768 def test_resolve_alias (self ):
6869 self .env .aliases = {'aliasname' : 'realname' }
You can’t perform that action at this time.
0 commit comments