fix: compatibility in Python 2.7

ImportError will be raised in `from httprunner.plugins.locusts.utils import prepare_locust_tests` if httprunner/plugins/__init__.py is missed
This commit is contained in:
debugtalk
2019-10-26 21:32:58 +08:00
parent 32bff3d088
commit 301648af8f
2 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
# NOTICE:
# This file should not be deleted, or ImportError will be raised in Python 2.7 when importing plugin

View File

@@ -206,7 +206,6 @@ class TestHttpRunner(ApiServerUnittest):
log_file_path = os.path.join(os.getcwd(), 'reports', "test_log_file.log")
runner = HttpRunner(failfast=True, log_file=log_file_path)
runner.run(self.testcase_cli_path)
time.sleep(1)
self.assertTrue(os.path.isfile(log_file_path))
os.remove(log_file_path)