Lines Matching refs:patch
17 @mock.patch('os.environ')
39 with mock.patch('os.getuid') as uid, \
40 mock.patch('pwd.getpwuid') as getpw:
62 with mock.patch('sys.stderr') as stderr:
66 @mock.patch('sys.stdin')
72 @mock.patch('sys.stdin')
98 with mock.patch('os.open') as open, \
99 mock.patch('io.FileIO') as fileio, \
100 mock.patch('io.TextIOWrapper') as textio:
112 with mock.patch('os.open') as open, \
113 mock.patch('io.FileIO'), \
114 mock.patch('io.TextIOWrapper'), \
115 mock.patch('termios.tcgetattr') as tcgetattr, \
116 mock.patch('termios.tcsetattr') as tcsetattr:
124 with mock.patch('os.open') as open, \
125 mock.patch('io.FileIO') as fileio, \
126 mock.patch('io.TextIOWrapper') as textio, \
127 mock.patch('termios.tcgetattr'), \
128 mock.patch('termios.tcsetattr') as tcsetattr, \
129 mock.patch('getpass.fallback_getpass') as fallback:
139 with mock.patch('os.open') as open, \
140 mock.patch('io.FileIO'), \
141 mock.patch('io.TextIOWrapper'), \
142 mock.patch('termios.tcgetattr'), \
143 mock.patch('termios.tcsetattr'):
150 with mock.patch('os.open') as os_open, \
151 mock.patch('sys.stdin', spec=StringIO) as stdin: