Skip to content

Commit cb14a08

Browse files
committed
Remove brittle tests for CLI help page
1 parent cfd3953 commit cb14a08

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

tests/test_cli.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,7 @@ def test_cli_help(capsys):
2626
assert pytest_wrapped_e.value.code == 0
2727

2828
captured_output = capsys.readouterr().out
29-
30-
assert (
31-
"\
32-
usage: datajoint [--help] [-V] [-u USER] [-p PASSWORD] [-h HOST]\n\
33-
[-s SCHEMAS [SCHEMAS ...]]\n\n\
34-
\
35-
DataJoint console interface.\n\n\
36-
\
37-
optional arguments:\n\
38-
--help show this help message and exit\n\
39-
-V, --version show program's version number and exit\n\
40-
-u USER, --user USER Datajoint username\n\
41-
-p PASSWORD, --password PASSWORD\n\
42-
Datajoint password\n\
43-
-h HOST, --host HOST Datajoint host\n\
44-
-s SCHEMAS [SCHEMAS ...], --schemas SCHEMAS [SCHEMAS ...]\n\
45-
A list of virtual module mappings in `db:schema ...`\n\
46-
format\n"
47-
== captured_output
48-
)
29+
assert captured_output.strip()
4930

5031

5132
def test_cli_config():

0 commit comments

Comments
 (0)