fix #279 #288: do not install httpbin as default, make compatible with Windows

This commit is contained in:
debugtalk
2018-08-02 11:40:35 +08:00
parent f071c02513
commit ee610a26a5
3 changed files with 5 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ class TestResponse(ApiServerUnittest):
extract_binds_dict = resp_obj.extract_response(extract_binds_list)
self.assertIsInstance(extract_binds_dict["resp_content"], str)
self.assertIn("python-requests.org", extract_binds_dict["resp_content"])
self.assertIn("httpbin.org", extract_binds_dict["resp_content"])
extract_binds_list = [
{"resp_content": "content.xxx"}

View File

@@ -161,7 +161,7 @@ class TestRunner(ApiServerUnittest):
end_time = time.time()
summary = runner.summary
self.assertTrue(summary["success"])
self.assertLess(end_time - start_time, 1)
self.assertLess(end_time - start_time, 3)
def test_run_httprunner_with_teardown_hooks_alter_response(self):
testsets = [