website/sales/tests/test_api.py
File test_api.py
has 783 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
Wontfix
from unittest import mock
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.test import TestCase
- Create a ticketCreate a ticket
Function setUpTestData
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setUpTestData(cls):
"""Create the following test data:
o0: an empty order
o1: an unpaid order of 2 beer
- Create a ticketCreate a ticket
Function setUpTestData
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setUpTestData(cls):
"""Create the following test data:
o0: an empty order
o1: an unpaid order of 2 beer
- Create a ticketCreate a ticket