We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34f5c4e commit ffb8a38Copy full SHA for ffb8a38
zulip/tests/test_default_arguments.py
@@ -19,17 +19,16 @@ def test_invalid_arguments(self) -> None:
19
parser.parse_args(["invalid argument"])
20
self.assertEqual(cm.exception.code, 2)
21
# Assert that invalid arguments exit with printing the full usage (non-standard behavior)
22
- self.assertTrue(
23
- mock_stderr.getvalue().startswith(
24
- """usage: lorem ipsum
+ self.assertRegex(
+ mock_stderr.getvalue(),
+ r"""^usage: lorem ipsum
25
26
-optional arguments:
+(optional arguments|options):
27
-h, --help show this help message and exit
28
29
Zulip API configuration:
30
--site ZULIP_SITE Zulip server URI
31
-"""
32
- )
+""",
33
)
34
35
@patch("os.path.exists", return_value=False)
0 commit comments