- tw-1441.t now calls runError() with merge_streams disabled.
- Taskwarrior only displays an error for the first file that is not found, so only check one.
This commit is contained in:
Wilhelm Schuermann
2014-10-19 12:26:04 +02:00
committed by Paul Beckingham
parent d9222606e7
commit cfe267f2e5

View File

@@ -16,11 +16,10 @@ class TestBug1441(TestCase):
def test_import_filename(self):
"""import fails if file doesn't exist"""
command = ("import", "somefile", "otherfile")
code, out, err = self.t.runError(command)
command = ("import", "xxx_doesnotexist")
code, out, err = self.t.runError(command, merge_streams=False)
self.assertIn("File 'somefile' not found.", err)
self.assertIn("File 'otherfile' not found.", err)
self.assertIn("File 'xxx_doesnotexist' not found.", err)
if __name__ == "__main__":