def test_api_build_metrics_get(self): """Test case for api_build_metrics_get """ default_api = DefaultApi(api_client=self.api_client) params = dlrnapi_client.MetricsRequest() path, method = default_api.api_build_metrics_get(params) self.assertEqual(path, '/api/metrics/builds') self.assertEqual(method, 'GET')
def test_api_remote_import_post(self): """Test case for api_remote_import_post """ default_api = DefaultApi(api_client=self.api_client) params = dlrnapi_client.ModelImport() path, method = default_api.api_remote_import_post(params) self.assertEqual(path, '/api/remote/import') self.assertEqual(method, 'POST')
def test_api_promotions_get(self): """Test case for api_promotions_get """ default_api = DefaultApi(api_client=self.api_client) params = dlrnapi_client.Promotion() path, method = default_api.api_promotions_get(params) self.assertEqual(path, '/api/promotions') self.assertEqual(method, 'GET')
def test_api_last_tested_repo_post(self): """Test case for api_last_tested_repo_post """ default_api = DefaultApi(api_client=self.api_client) params = dlrnapi_client.Params1() path, method = default_api.api_last_tested_repo_post(params) self.assertEqual(path, '/api/last_tested_repo') self.assertEqual(method, 'POST')
def test_api_report_result_post(self): """Test case for api_report_result_post """ default_api = DefaultApi(api_client=self.api_client) params = dlrnapi_client.Params3() path, method = default_api.api_report_result_post(params) self.assertEqual(path, '/api/report_result') self.assertEqual(method, 'POST')
def test_api_repo_status_get(self): """Test case for api_repo_status_get """ default_api = DefaultApi(api_client=self.api_client) params = dlrnapi_client.Params2() path, method = default_api.api_repo_status_get(params) self.assertEqual(path, '/api/repo_status') self.assertEqual(method, 'GET')
def setUp(self): self.api = DefaultApi() self.api_client = MockApiClient()