Merge pull request #1922 from yliaog/master

mock.call_args.kwargs was added after python 3.7, switched to the old…
This commit is contained in:
Kubernetes Prow Robot 2022-10-13 10:59:01 -07:00 committed by GitHub
commit a4c43ede69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ class ExecProviderTest(unittest.TestCase):
instance.communicate.return_value = (self.output_ok, '')
ep = ExecProvider(self.input_ok, '/some/directory')
ep.run()
self.assertEqual(mock.call_args.kwargs['cwd'], '/some/directory')
self.assertEqual(mock.call_args[1]['cwd'], '/some/directory')
if __name__ == '__main__':