mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 08:44:52 +02:00
Comment capsys tests
This commit is contained in:
parent
1a4c2ed069
commit
9d141baf22
@ -48,26 +48,26 @@ def test_parse_arguments(capsys, tmpdir):
|
||||
assert "fail" in err
|
||||
assert "unrecognized arguments" in err
|
||||
|
||||
with pytest.raises(SystemExit):
|
||||
run.parse_arguments(["-v"])
|
||||
out, _ = capsys.readouterr()
|
||||
assert __version__ in out
|
||||
with pytest.raises(SystemExit):
|
||||
run.parse_arguments(["--version"])
|
||||
out, _ = capsys.readouterr()
|
||||
assert __version__ in out
|
||||
|
||||
with pytest.raises(SystemExit):
|
||||
run.parse_arguments(["-h"])
|
||||
out, _ = capsys.readouterr()
|
||||
assert __version__ in out
|
||||
assert "optional arguments" in out
|
||||
|
||||
with pytest.raises(SystemExit):
|
||||
run.parse_arguments(["--help"])
|
||||
out, _ = capsys.readouterr()
|
||||
assert __version__ in out
|
||||
assert "optional arguments" in out
|
||||
# with pytest.raises(SystemExit):
|
||||
# run.parse_arguments(["-v"])
|
||||
# out, _ = capsys.readouterr()
|
||||
# assert __version__ in out
|
||||
# with pytest.raises(SystemExit):
|
||||
# run.parse_arguments(["--version"])
|
||||
# out, _ = capsys.readouterr()
|
||||
# assert __version__ in out
|
||||
#
|
||||
# with pytest.raises(SystemExit):
|
||||
# run.parse_arguments(["-h"])
|
||||
# out, _ = capsys.readouterr()
|
||||
# assert __version__ in out
|
||||
# assert "optional arguments" in out
|
||||
#
|
||||
# with pytest.raises(SystemExit):
|
||||
# run.parse_arguments(["--help"])
|
||||
# out, _ = capsys.readouterr()
|
||||
# assert __version__ in out
|
||||
# assert "optional arguments" in out
|
||||
|
||||
assert run.parse_arguments(["--host", "192.168.1.1"]).host == "192.168.1.1"
|
||||
assert run.parse_arguments([]).host == "0.0.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user