def __init__(self, config_dict=None, http_client_session=None): self.http_client_session = http_client_session self.context = Context() testcase.load_test_dependencies() config_dict = config_dict or {} self.init_config(config_dict, "testset")
def test_load_test_dependencies(self): testcase.test_def_overall_dict = {} testcase.load_test_dependencies() self.assertTrue(testcase.test_def_overall_dict["loaded"]) api_dict = testcase.test_def_overall_dict["api"] self.assertIn("get_token", api_dict) self.assertEqual("/api/get-token", api_dict["get_token"]["request"]["url"]) self.assertIn("$user_agent", api_dict["get_token"]["function_meta"]["args"]) self.assertIn("create_user", api_dict)
def test_load_test_dependencies(self): testcase.test_def_overall_dict = {} testcase.load_test_dependencies() self.assertTrue(testcase.test_def_overall_dict["loaded"]) api_dict = testcase.test_def_overall_dict["api"] self.assertIn("get_token", api_dict) self.assertEqual("/api/get-token", api_dict["get_token"]["request"]["url"]) self.assertIn("$user_agent", api_dict["get_token"]["function_meta"]["args"]) self.assertIn("create_user", api_dict)
def __init__(self, http_client_session=None, request_failure_hook=None): self.http_client_session = http_client_session self.context = Context() testcase.load_test_dependencies() self.request_failure_hook = request_failure_hook
def __init__(self, http_client_session=None, request_failure_hook=None): self.http_client_session = http_client_session self.context = Context() testcase.load_test_dependencies() self.request_failure_hook = request_failure_hook