From 00774377da982941e08e4d73e0906819f56531de Mon Sep 17 00:00:00 2001 From: Puru Sharma <81963842+purusharmadte@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:29:36 +0530 Subject: [PATCH] Update test_cli.py updated as input and remove older functionality raw_input --- src/gitsweep/tests/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gitsweep/tests/test_cli.py b/src/gitsweep/tests/test_cli.py index 9ddd6ce..cf0f2f3 100644 --- a/src/gitsweep/tests/test_cli.py +++ b/src/gitsweep/tests/test_cli.py @@ -135,7 +135,7 @@ def test_will_cleanup(self): self.make_commit() self.command('git merge branch{0}'.format(i)) - with patch('gitsweep.cli.raw_input', create=True) as ri: + with patch('gitsweep.cli.input', create=True) as ri: ri.return_value = 'y' (retcode, stdout, stderr) = self.gscommand('git-sweep cleanup') @@ -173,7 +173,7 @@ def test_will_abort_cleanup(self): self.make_commit() self.command('git merge branch{0}'.format(i)) - with patch('gitsweep.cli.raw_input', create=True) as ri: + with patch('gitsweep.cli.input', create=True) as ri: ri.return_value = 'n' (retcode, stdout, stderr) = self.gscommand('git-sweep cleanup')