]> Nutra Git (v1) - nutratech/cli.git/commitdiff
test coverage ApiClient.get() not used yet anyway
authorShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 21:05:56 +0000 (16:05 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 21:05:56 +0000 (16:05 -0500)
ntclient/services/api/__init__.py

index 2813c3277ea9409462dbd29009fffca213fc349f..0e3916ff319725862bc09df6e96b31ecc9cf6491 100644 (file)
@@ -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(