From a3ea5cb4126a8af7f7572f071c11c60fa2c8e45c Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Fri, 10 Jul 2015 18:08:46 +0100 Subject: [PATCH] Tests: \n on input= matters. Always include it --- test/basetest/task.py | 4 ++-- test/project.t | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/basetest/task.py b/test/basetest/task.py index df73d699b..0125362f3 100644 --- a/test/basetest/task.py +++ b/test/basetest/task.py @@ -185,7 +185,7 @@ class Task(object): If you wish to pass instructions to task such as confirmations or other input via stdin, you can do so by providing a input string. - Such as input="y\ny". + Such as input="y\ny\n". If merge_streams=True stdout and stderr will be merged into stdout. @@ -219,7 +219,7 @@ class Task(object): If you wish to pass instructions to task such as confirmations or other input via stdin, you can do so by providing a input string. - Such as input="y\ny". + Such as input="y\ny\n". If merge_streams=True stdout and stderr will be merged into stdout. diff --git a/test/project.t b/test/project.t index e2bc9307b..398d77112 100755 --- a/test/project.t +++ b/test/project.t @@ -221,7 +221,7 @@ class TestBug605(TestCase): """ self.t("add One project:p1") - code, out, err = self.t(("1", "delete"), input="y") + code, out, err = self.t(("1", "delete"), input="y\n") self.assertIn("is 0% complete", err) self.t("add Two project:p1")