Skip to content

Commit

Permalink
fix: removes dangling NotImplementedError throws
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Apr 2, 2024
1 parent 0af414b commit 4128d64
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions src/posit/connect/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
9 changes: 0 additions & 9 deletions src/posit/connect/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 4128d64

Please sign in to comment.