core/controllers/acl_decorators_test.py

Summary

Maintainability
F
2 wks
Test Coverage

File acl_decorators_test.py has 6818 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# coding: utf-8
#
# Copyright 2017 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Severity: Major
Found in core/controllers/acl_decorators_test.py - About 2 wks to fix

    Function setUp has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    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)
    Severity: Minor
    Found in core/controllers/acl_decorators_test.py - About 1 hr to fix

      Function setUp has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      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)
      Severity: Minor
      Found in core/controllers/acl_decorators_test.py - About 1 hr to fix

        Function setUp has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        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)
        Severity: Minor
        Found in core/controllers/acl_decorators_test.py - About 1 hr to fix

          Function setUp has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          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)
          Severity: Minor
          Found in core/controllers/acl_decorators_test.py - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status