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)
Beispiel #2
0
 def __init__(self, http_client_session=None):
     self.http_client_session = http_client_session
     self.context = Context()
     testcase.load_test_dependencies()
Beispiel #3
0
 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