Change default port to 3080

Fix #487
This commit is contained in:
Julien Duponchelle committed 2016-03-25 15:31:17 +01:00
1 parent 5345fe8490
commit c563dbba8a
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ class Query:
if path is None:
return
with open(self._example_file_path(method, route), 'w+') as f:
f.write("curl -i -X {} 'http://localhost:8000/v{}{}'".format(method, api_version, path))
f.write("curl -i -X {} 'http://localhost:3080/v{}{}'".format(method, api_version, path))
if body:
f.write(" -d '{}'".format(re.sub(r"\n", "", json.dumps(json.loads(body), sort_keys=True))))
f.write("\n\n")
+1 -1
View File
@@ -77,7 +77,7 @@ def test_parse_arguments(capsys, tmpdir):
assert run.parse_arguments([]).host == "192.168.1.2"
assert run.parse_arguments(["--port", "8002"]).port == 8002
assert run.parse_arguments([]).port == 8000
assert run.parse_arguments([]).port == 3080
server_config["port"] = "8003"
assert run.parse_arguments([]).port == 8003