Skip to content

Commit 757b22f

Browse files
committed
skip tests if stripe is not enabled
1 parent 75e5a66 commit 757b22f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kpi/tests/api/v2/test_api_user_reports.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from unittest.mock import patch
22

3+
import pytest
34
from django.conf import settings
45
from django.db import connection
56
from django.urls import reverse
@@ -14,6 +15,7 @@
1415
from kpi.tests.base_test_case import BaseTestCase
1516

1617

18+
@pytest.mark.skipif(not settings.STRIPE_ENABLED, reason='Requires stripe functionality')
1719
class UserReportsViewSetAPITestCase(BaseTestCase):
1820
fixtures = ['test_data']
1921

0 commit comments

Comments
 (0)