core/domain/suggestion_registry_test.py

Summary

Maintainability
F
1 wk
Test Coverage

File suggestion_registry_test.py has 3714 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2018 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Severity: Major
Found in core/domain/suggestion_registry_test.py - About 1 wk to fix

    SuggestionTranslateContentUnitTests has 35 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class SuggestionTranslateContentUnitTests(test_utils.GenericTestBase):
        """Tests for the SuggestionEditStateContent class."""
    
        AUTHOR_EMAIL: Final = 'author@example.com'
        REVIEWER_EMAIL: Final = 'reviewer@example.com'
    Severity: Minor
    Found in core/domain/suggestion_registry_test.py - About 4 hrs to fix

      SuggestionAddQuestionTest has 33 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class SuggestionAddQuestionTest(test_utils.GenericTestBase):
          """Tests for the SuggestionAddQuestion class."""
      
          AUTHOR_EMAIL: Final = 'author@example.com'
          REVIEWER_EMAIL: Final = 'reviewer@example.com'
      Severity: Minor
      Found in core/domain/suggestion_registry_test.py - About 4 hrs to fix

        SuggestionEditStateContentUnitTests has 32 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class SuggestionEditStateContentUnitTests(test_utils.GenericTestBase):
            """Tests for the SuggestionEditStateContent class."""
        
            AUTHOR_EMAIL: Final = 'author@example.com'
            REVIEWER_EMAIL: Final = 'reviewer@example.com'
        Severity: Minor
        Found in core/domain/suggestion_registry_test.py - About 4 hrs to fix

          CommunityContributionStatsUnitTests has 32 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class CommunityContributionStatsUnitTests(test_utils.GenericTestBase):
              """Tests for the CommunityContributionStats class."""
          
              translation_reviewer_counts_by_lang_code: Dict[str, int] = {
                  'hi': 0,
          Severity: Minor
          Found in core/domain/suggestion_registry_test.py - About 4 hrs to fix

            There are no issues that match your filters.

            Category
            Status