svthalia/concrexit

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

Summary

Maintainability
A
3 hrs
Test Coverage

File test_api.py has 783 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

from unittest import mock

from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.test import TestCase
Severity: Major
Found in website/sales/tests/test_api.py - About 1 day to fix

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

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

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

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

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

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

There are no issues that match your filters.

Category
Status