From 4128d6432269bae165aa6590431eff08d364cede Mon Sep 17 00:00:00 2001 From: tdstein Date: Tue, 2 Apr 2024 12:29:31 -0400 Subject: [PATCH] fix: removes dangling NotImplementedError throws --- .coveragerc | 2 -- src/posit/connect/content.py | 9 --------- src/posit/connect/users.py | 9 --------- 3 files changed, 20 deletions(-) diff --git a/.coveragerc b/.coveragerc index 401dc6fd..ba131540 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,9 +2,7 @@ [report] # exclude '...' (ellipsis literal). This option uses regex, so an escaped literal is required. -# exclude 'raise NotImplementedError()'. exclude_also = \.\.\. - raise NotImplementedError() fail_under = 80 diff --git a/src/posit/connect/content.py b/src/posit/connect/content.py index 4504be35..0516db2e 100644 --- a/src/posit/connect/content.py +++ b/src/posit/connect/content.py @@ -326,15 +326,6 @@ def get(self, id: str) -> ContentItem: response = self.session.get(url) return ContentItem(self.config, self.session, **response.json()) - def create(self) -> ContentItem: - raise NotImplementedError() - - def update(self) -> ContentItem: - raise NotImplementedError() - - def delete(self) -> None: - raise NotImplementedError() - def count(self) -> int: results = self.session.get(self.url).json() return len(results) diff --git a/src/posit/connect/users.py b/src/posit/connect/users.py index 3bc52474..80da9138 100644 --- a/src/posit/connect/users.py +++ b/src/posit/connect/users.py @@ -214,15 +214,6 @@ def get(self, id: str) -> User: **response.json(), ) - def create(self) -> User: - raise NotImplementedError() - - def update(self) -> User: - raise NotImplementedError() - - def delete(self) -> None: - raise NotImplementedError() - def count(self) -> int: response: requests.Response = self.session.get( self.url, params={"page_size": 1}