mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-18 20:37:57 +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):
|
||||
run.parse_arguments(["-v"])
|
||||
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):
|
||||
run.parse_arguments(["--version"])
|
||||
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):
|
||||
run.parse_arguments(["-h"])
|
||||
|
Loading…
Reference in New Issue
Block a user