Reports the comment to the Scratch team.
(self)
| 212 | return None # raise error? |
| 213 | |
| 214 | def report(self): |
| 215 | """ |
| 216 | Reports the comment to the Scratch team. |
| 217 | """ |
| 218 | self._assert_auth() |
| 219 | if self.source == CommentSource.USER_PROFILE: |
| 220 | user.User(username=self.source_id, _session=self._session).report_comment(comment_id=self.id) |
| 221 | |
| 222 | elif self.source == CommentSource.PROJECT: |
| 223 | p = project.Project(id=self.source_id, _session=self._session) |
| 224 | p.update() |
| 225 | p.report_comment(comment_id=self.id) |
| 226 | |
| 227 | elif self.source == CommentSource.STUDIO: |
| 228 | studio.Studio(id=self.source_id, _session=self._session).report_comment(comment_id=self.id) |
nothing calls this directly
no test coverage detected