Skip to content

Commit 3f421d1

Browse files
committed
fix tests and add openapi schema generated by management command
1 parent 757b22f commit 3f421d1

File tree

3 files changed

+1418
-3
lines changed

3 files changed

+1418
-3
lines changed

kpi/tests/api/v2/test_api_user_reports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
from django.conf import settings
55
from django.db import connection
66
from django.urls import reverse
7-
from djstripe.enums import BillingScheme
8-
from djstripe.models import Customer
97
from model_bakery import baker
108
from rest_framework import status
119

@@ -24,6 +22,8 @@ def setUp(self):
2422
self.url = reverse(self._get_endpoint('api_v2:user-reports-list'))
2523

2624
# Create and add a subscription to someuser
25+
from djstripe.enums import BillingScheme
26+
from djstripe.models import Customer
2727
self.someuser = User.objects.get(username='someuser')
2828
organization = self.someuser.organization
2929
self.customer = baker.make(Customer, subscriber=organization)

0 commit comments

Comments
 (0)