mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-25 02:10:24 +08:00
define httpbin host and port in one place
This commit is contained in:
@@ -3,7 +3,7 @@ import shutil
|
||||
|
||||
from httprunner import HttpRunner
|
||||
from httprunner.exceptions import FileNotFound
|
||||
from tests.base import ApiServerUnittest
|
||||
from tests.base import HTTPBIN_SERVER, ApiServerUnittest
|
||||
|
||||
|
||||
class TestHttpRunner(ApiServerUnittest):
|
||||
@@ -118,7 +118,7 @@ class TestHttpRunner(ApiServerUnittest):
|
||||
{
|
||||
"name": "post data",
|
||||
"request": {
|
||||
"url": "http://127.0.0.1:3458/post",
|
||||
"url": "{}/post".format(HTTPBIN_SERVER),
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"Content-Type": "application/json"
|
||||
|
||||
Reference in New Issue
Block a user