mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: \n on input= matters. Always include it
This commit is contained in:
parent
b86c079ed5
commit
a3ea5cb412
2 changed files with 3 additions and 3 deletions
|
@ -185,7 +185,7 @@ class Task(object):
|
||||||
|
|
||||||
If you wish to pass instructions to task such as confirmations or other
|
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.
|
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.
|
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
|
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.
|
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.
|
If merge_streams=True stdout and stderr will be merged into stdout.
|
||||||
|
|
||||||
|
|
|
@ -221,7 +221,7 @@ class TestBug605(TestCase):
|
||||||
"""
|
"""
|
||||||
self.t("add One project:p1")
|
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.assertIn("is 0% complete", err)
|
||||||
|
|
||||||
self.t("add Two project:p1")
|
self.t("add Two project:p1")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue