From 232a661d40721023dca89e20492374db44d38605 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sun, 25 Feb 2024 16:05:56 -0500 Subject: [PATCH] test coverage ApiClient.get() not used yet anyway --- ntclient/services/api/__init__.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ntclient/services/api/__init__.py b/ntclient/services/api/__init__.py index 2813c32..0e3916f 100644 --- a/ntclient/services/api/__init__.py +++ b/ntclient/services/api/__init__.py @@ -48,15 +48,6 @@ class ApiClient: if not self.host: raise ConnectionError("Cannot find suitable API host!") - def get(self, path: str) -> requests.Response: - """Get data from the API.""" - _res = requests.get( - f"{self.host}/{path}", - timeout=(REQUEST_CONNECT_TIMEOUT, REQUEST_READ_TIMEOUT), - ) - _res.raise_for_status() - return _res - def post(self, path: str, data: dict) -> requests.Response: """Post data to the API.""" _res = requests.post( -- 2.52.0