Deprecate waffle_utils.testutils.override* functions
These functions should from now on be imported from edx_toggles.toggles.testutils.
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
Tests for waffle utils views.
|
||||
"""
|
||||
from django.test import TestCase
|
||||
from edx_toggles.toggles.testutils import override_waffle_flag
|
||||
from rest_framework.test import APIRequestFactory
|
||||
from waffle.testutils import override_switch
|
||||
|
||||
from student.tests.factories import UserFactory
|
||||
|
||||
from .. import WaffleFlag, WaffleFlagNamespace, WaffleSwitch, WaffleSwitchNamespace
|
||||
from ..testutils import override_waffle_flag
|
||||
from .. import WaffleFlag, WaffleFlagNamespace
|
||||
from ..views import ToggleStateView
|
||||
|
||||
TEST_WAFFLE_FLAG_NAMESPACE = WaffleFlagNamespace('test')
|
||||
|
||||
@@ -2,11 +2,6 @@
|
||||
Test utilities for waffle utilities.
|
||||
"""
|
||||
|
||||
# Import from edx-toggles to preserve import paths
|
||||
# TODO: Deprecate and remove
|
||||
# pylint: disable=unused-import
|
||||
from edx_toggles.toggles.testutils import override_waffle_flag, override_waffle_switch
|
||||
|
||||
# Can be used with FilteredQueryCountMixin.assertNumQueries() to blacklist
|
||||
# waffle tables. For example:
|
||||
# QUERY_COUNT_TABLE_BLACKLIST = WAFFLE_TABLES
|
||||
|
||||
Reference in New Issue
Block a user