refactor(test): use @skip_unless_lms uniformly

This commit is contained in:
Ned Batchelder
2023-02-01 13:59:13 -05:00
committed by Ned Batchelder
parent 71e2aa7018
commit 12765a7a59
49 changed files with 187 additions and 250 deletions

View File

@@ -1,18 +1,18 @@
# pylint: disable=missing-module-docstring
import unittest
from unittest.mock import patch
import ddt
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.management import call_command
from django.core.management.base import CommandError
from django.test import TestCase
from openedx.core.djangoapps.api_admin.models import ApiAccessConfig, ApiAccessRequest
from openedx.core.djangolib.testing.utils import skip_unless_lms
from common.djangoapps.student.tests.factories import UserFactory
@unittest.skipUnless(settings.ROOT_URLCONF == 'lms.urls', 'Tests only valid in lms')
@skip_unless_lms
@ddt.ddt
class TestCreateApiAccessRequest(TestCase):
""" Test create_api_access_request command """