From: Shane Jaroch Date: Sun, 25 Feb 2024 21:05:56 +0000 (-0500) Subject: test coverage ApiClient.get() not used yet anyway X-Git-Tag: v0.2.8.dev0~14 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=232a661d40721023dca89e20492374db44d38605;p=nutratech%2Fcli.git test coverage ApiClient.get() not used yet anyway --- 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(