fix RecursionError caused by locust

This commit is contained in:
debugtalk
2018-12-18 16:21:24 +08:00
parent 2640720332
commit 363420053c
2 changed files with 3 additions and 3 deletions

View File

@@ -10,13 +10,14 @@ try:
from httpbin import app as httpbin_app
HTTPBIN_HOST = "127.0.0.1"
HTTPBIN_PORT = 3458
HTTPBIN_SERVER = "http://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT)
except ImportError:
httpbin_app = None
HTTPBIN_HOST = "httpbin.org"
HTTPBIN_PORT = 80
HTTPBIN_PORT = 443
HTTPBIN_SERVER = "https://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT)
FLASK_APP_PORT = 5000
HTTPBIN_SERVER = "http://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT)
SECRET_KEY = "DebugTalk"
app = Flask(__name__)

View File

@@ -5,7 +5,6 @@ import unittest
from httprunner import loader, parser
from httprunner.api import HttpRunner, prepare_locust_tests
from locust import HttpLocust
from tests.api_server import HTTPBIN_SERVER
from tests.base import ApiServerUnittest