core/controllers/acl_decorators_test.py
File acl_decorators_test.py
has 6818 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding: utf-8
#
# Copyright 2017 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Function setUp
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setUp(self) -> None:
super().setUp()
self.signup(self.author_email, self.author_username)
self.signup(self.user_email, self.username)
self.signup(self.curriculum_admin_email, self.curriculum_admin_username)
Function setUp
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setUp(self) -> None:
super().setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
Function setUp
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setUp(self) -> None:
super().setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
Function setUp
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setUp(self) -> None:
super().setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)