diff --git a/httprunner/plugins/__init__.py b/httprunner/plugins/__init__.py new file mode 100644 index 00000000..1802047f --- /dev/null +++ b/httprunner/plugins/__init__.py @@ -0,0 +1,2 @@ +# NOTICE: +# This file should not be deleted, or ImportError will be raised in Python 2.7 when importing plugin diff --git a/tests/test_api.py b/tests/test_api.py index 011d32f2..1f84a8b8 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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)