Unittest - Adjust failing tests due to split of streams
This commit is contained in:
@@ -19,7 +19,7 @@ class TestEmptyFilter(TestCase):
|
||||
self.t(("add", "bar"))
|
||||
|
||||
code, out, err = self.t.runError(("modify", "rc.allow.empty.filter=yes", "rc.confirmation=no", "priority:H"))
|
||||
self.assertIn("Command prevented from running.", out)
|
||||
self.assertIn("Command prevented from running.", err)
|
||||
|
||||
def test_empty_filter_error(self):
|
||||
"""Modify tasks with no filter, and disallowed confirmation."""
|
||||
@@ -28,7 +28,7 @@ class TestEmptyFilter(TestCase):
|
||||
self.t(("add", "bar"))
|
||||
|
||||
code, out, err = self.t.runError(("modify", "rc.allow.empty.filter=no", "priority:H"))
|
||||
self.assertIn("You did not specify a filter, and with the 'allow.empty.filter' value, no action is taken.", out)
|
||||
self.assertIn("You did not specify a filter, and with the 'allow.empty.filter' value, no action is taken.", err)
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
||||
Reference in New Issue
Block a user