fix: unittest for upload httpbin

This commit is contained in:
debugtalk
2019-12-12 17:35:31 +08:00
parent c1ec764c91
commit e6abdbb2b0
2 changed files with 3 additions and 4 deletions

View File

@@ -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"

View File

@@ -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"]