From 8954f1a494e7fcdf551b83c4101949e6b302fc1c Mon Sep 17 00:00:00 2001
From: Peter Kessen
Date: Wed, 27 Jan 2016 19:42:53 +0100
Subject: [PATCH] split of modify function in modify_test
---
test/test_ui.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/test/test_ui.py b/test/test_ui.py
index 609c21c00..58eecee46 100644
--- a/test/test_ui.py
+++ b/test/test_ui.py
@@ -158,10 +158,13 @@ class ModifyTest(unittest.TestCase, TestHelper):
def tearDown(self):
self.teardown_beets()
- def modify(self, *args):
- with control_stdin('y'):
+ def modify_inp(self, inp, *args):
+ with control_stdin(inp):
ui._raw_main(['modify'] + list(args), self.lib)
+ def modify(self, *args):
+ self.modify_inp('y', *args)
+
# Item tests
def test_modify_item(self):