Fix tests.

This commit is contained in:
grossmj 2019-10-09 15:00:48 +08:00
parent 6d1adea907
commit 56a4d3f8fd

View File

@ -71,7 +71,7 @@ def test_parse_arguments(capsys, tmpdir):
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"
assert run.parse_arguments([]).host == "localhost"
server_config["host"] = "192.168.1.2"
assert run.parse_arguments(["--host", "192.168.1.1"]).host == "192.168.1.1"
assert run.parse_arguments([]).host == "192.168.1.2"