From 26a5d39bd74286a5b34faa1aeafda9694b29fd44 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 12 Dec 2019 17:35:31 +0800 Subject: [PATCH] fix: unittest for upload httpbin --- tests/api_server.py | 4 ++-- tests/httpbin/upload.yml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/api_server.py b/tests/api_server.py index c7c73eee..4cf6b0fb 100644 --- a/tests/api_server.py +++ b/tests/api_server.py @@ -15,8 +15,8 @@ try: except ImportError: httpbin_app = None HTTPBIN_HOST = "httpbin.org" - HTTPBIN_PORT = 443 - HTTPBIN_SERVER = "https://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT) + HTTPBIN_PORT = 80 + HTTPBIN_SERVER = "http://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT) FLASK_APP_PORT = 5000 SECRET_KEY = "DebugTalk" diff --git a/tests/httpbin/upload.yml b/tests/httpbin/upload.yml index 344b90bd..b8f0c29d 100644 --- a/tests/httpbin/upload.yml +++ b/tests/httpbin/upload.yml @@ -15,5 +15,4 @@ data: $multipart_encoder validate: - eq: ["status_code", 200] - - startswith: ["content.files.file", "UserName=test"] - + - startswith: ["content.form.file", "data/test.env"]