mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-05-09 12:23:02 +00:00
Remove '\n' from for version strings for test_parse_arguments test.
This commit is contained in:
parent
ef23e74e9c
commit
438b1c056c
@ -51,12 +51,12 @@ def test_parse_arguments(capsys, tmpdir):
|
|||||||
with pytest.raises(SystemExit):
|
with pytest.raises(SystemExit):
|
||||||
run.parse_arguments(["-v"])
|
run.parse_arguments(["-v"])
|
||||||
out, err = capsys.readouterr()
|
out, err = capsys.readouterr()
|
||||||
assert __version__ in "{}{}".format(out, err) # Depending of the Python version the location of the version change
|
assert __version__ in "{}{}".format(out.strip(), err.strip()) # Depending of the Python version the location of the version change
|
||||||
|
|
||||||
with pytest.raises(SystemExit):
|
with pytest.raises(SystemExit):
|
||||||
run.parse_arguments(["--version"])
|
run.parse_arguments(["--version"])
|
||||||
out, err = capsys.readouterr()
|
out, err = capsys.readouterr()
|
||||||
assert __version__ in "{}{}".format(out, err) # Depending of the Python version the location of the version change
|
assert __version__ in "{}{}".format(out.strip(), err.strip()) # Depending of the Python version the location of the version change
|
||||||
|
|
||||||
with pytest.raises(SystemExit):
|
with pytest.raises(SystemExit):
|
||||||
run.parse_arguments(["-h"])
|
run.parse_arguments(["-h"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user