svthalia/concrexit

View on GitHub
website/sales/tests/test_admin.py

Summary

Maintainability
D
1 day
Test Coverage

File test_admin.py has 572 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from django.contrib.admin import AdminSite
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.test import Client, RequestFactory, TestCase
from django.urls import reverse
Severity: Major
Found in website/sales/tests/test_admin.py - About 1 day to fix

Function setUpTestData has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def setUpTestData(cls) -> None:
        """Create the following test data:

        o0: an empty order
        o1: an unpaid order of 2 beer
Severity: Minor
Found in website/sales/tests/test_admin.py - About 1 hr to fix

Function setUpTestData has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def setUpTestData(cls) -> None:
        """Create the following test data:

        o0: an empty order
        o1: an unpaid order of 2 beer
Severity: Minor
Found in website/sales/tests/test_admin.py - About 1 hr to fix

There are no issues that match your filters.

Category
Status