Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawful2002 committed May 18, 2024
1 parent 6e916ca commit 4cf491c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/controllers/access_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get(self) -> None:
raise self.NotFoundException


class SubtopicViewerPageAccessValidator(
class SubtopicViewerPageAccessValidationHandler(
base.BaseHandler[Dict[str, str], Dict[str, str]]
):
""" Validates access to the Subtopic Viewer Page """
Expand All @@ -105,7 +105,7 @@ class SubtopicViewerPageAccessValidator(
HANDLER_ARGS_SCHEMAS: Dict[str, Dict[str, str]] = {'GET': {}}

@acl_decorators.can_access_subtopic_viewer_page
def get(self, *args: str) -> None:
def get(self, _: str) -> None:
"""Handles GET requests."""
pass

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def get_redirect_route(
get_redirect_route(
r'%s/can_access_subtopic_viewer_page/<classroom_url_fragment>/<topic_url_fragment>/revision/<subtopic_url_fragment>' % # pylint: disable=line-too-long
feconf.ACCESS_VALIDATION_HANDLER_PREFIX,
access_validators.SubtopicViewerPageAccessValidator),
access_validators.SubtopicViewerPageAccessValidationHandler),

get_redirect_route(
r'%s/can_access_blog_post_page' %
Expand Down

0 comments on commit 4cf491c

Please sign in to comment.