mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 17:59:36 +08:00
fix: unittest for upload httpbin
This commit is contained in:
@@ -15,8 +15,8 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
httpbin_app = None
|
httpbin_app = None
|
||||||
HTTPBIN_HOST = "httpbin.org"
|
HTTPBIN_HOST = "httpbin.org"
|
||||||
HTTPBIN_PORT = 443
|
HTTPBIN_PORT = 80
|
||||||
HTTPBIN_SERVER = "https://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT)
|
HTTPBIN_SERVER = "http://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT)
|
||||||
|
|
||||||
FLASK_APP_PORT = 5000
|
FLASK_APP_PORT = 5000
|
||||||
SECRET_KEY = "DebugTalk"
|
SECRET_KEY = "DebugTalk"
|
||||||
|
|||||||
@@ -15,5 +15,4 @@
|
|||||||
data: $multipart_encoder
|
data: $multipart_encoder
|
||||||
validate:
|
validate:
|
||||||
- eq: ["status_code", 200]
|
- eq: ["status_code", 200]
|
||||||
- startswith: ["content.files.file", "UserName=test"]
|
- startswith: ["content.form.file", "data/test.env"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user