mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-05 15:59:33 +08:00
This commit is contained in:
@@ -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"}
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user