fix RecursionError caused by locust

This commit is contained in:
debugtalk
2018-12-18 16:21:24 +08:00
parent ab3fe57c68
commit 751a7469d8
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -10,13 +10,14 @@ try:
from httpbin import app as httpbin_app from httpbin import app as httpbin_app
HTTPBIN_HOST = "127.0.0.1" HTTPBIN_HOST = "127.0.0.1"
HTTPBIN_PORT = 3458 HTTPBIN_PORT = 3458
HTTPBIN_SERVER = "http://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT)
except ImportError: except ImportError:
httpbin_app = None httpbin_app = None
HTTPBIN_HOST = "httpbin.org" HTTPBIN_HOST = "httpbin.org"
HTTPBIN_PORT = 80 HTTPBIN_PORT = 443
HTTPBIN_SERVER = "https://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT)
FLASK_APP_PORT = 5000 FLASK_APP_PORT = 5000
HTTPBIN_SERVER = "http://{}:{}".format(HTTPBIN_HOST, HTTPBIN_PORT)
SECRET_KEY = "DebugTalk" SECRET_KEY = "DebugTalk"
app = Flask(__name__) app = Flask(__name__)
-1
View File
@@ -5,7 +5,6 @@ import unittest
from httprunner import loader, parser from httprunner import loader, parser
from httprunner.api import HttpRunner, prepare_locust_tests from httprunner.api import HttpRunner, prepare_locust_tests
from locust import HttpLocust
from tests.api_server import HTTPBIN_SERVER from tests.api_server import HTTPBIN_SERVER
from tests.base import ApiServerUnittest from tests.base import ApiServerUnittest