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

This commit is contained in:
debugtalk
2018-08-02 11:44:49 +08:00
parent f071c02513
commit ee610a26a5
3 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -6,18 +6,17 @@ name = "pypi"
[packages] [packages]
requests = "*" requests = "*"
pyyaml = "*" pyyaml = "*"
"jinja2" = "*" jinja2 = "*"
"har2case" = "*" har2case = "*"
colorama = "*" colorama = "*"
colorlog = "*" colorlog = "*"
requests-toolbelt = "*" requests-toolbelt = "*"
[dev-packages] [dev-packages]
Flask = "<1.0.0" Flask = "<1.0.0"
httpbin = "*"
coverage = "*" coverage = "*"
coveralls = "*" coveralls = "*"
twine = "*" twine = "*"
"contextlib2" = "*" contextlib2 = "*"
[scripts] [scripts]
+1 -1
View File
@@ -260,7 +260,7 @@ class TestResponse(ApiServerUnittest):
extract_binds_dict = resp_obj.extract_response(extract_binds_list) extract_binds_dict = resp_obj.extract_response(extract_binds_list)
self.assertIsInstance(extract_binds_dict["resp_content"], str) 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 = [ extract_binds_list = [
{"resp_content": "content.xxx"} {"resp_content": "content.xxx"}
+1 -1
View File
@@ -161,7 +161,7 @@ class TestRunner(ApiServerUnittest):
end_time = time.time() end_time = time.time()
summary = runner.summary summary = runner.summary
self.assertTrue(summary["success"]) 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): def test_run_httprunner_with_teardown_hooks_alter_response(self):
testsets = [ testsets = [