mirror of
https://github.com/django/django.git
synced 2025-10-10 02:22:22 +00:00
Applied ignore_warnings to Django tests
This commit is contained in:
parent
66f9a74b45
commit
51890ce889
57 changed files with 513 additions and 711 deletions
|
@ -5,14 +5,15 @@ Tests for stuff in django.utils.datastructures.
|
|||
import copy
|
||||
import pickle
|
||||
|
||||
from django.test import SimpleTestCase
|
||||
from django.test.utils import IgnoreDeprecationWarningsMixin
|
||||
from django.test import SimpleTestCase, ignore_warnings
|
||||
from django.utils.datastructures import (DictWrapper, ImmutableList,
|
||||
MultiValueDict, MultiValueDictKeyError, MergeDict, OrderedSet, SortedDict)
|
||||
from django.utils.deprecation import RemovedInDjango19Warning
|
||||
from django.utils import six
|
||||
|
||||
|
||||
class SortedDictTests(IgnoreDeprecationWarningsMixin, SimpleTestCase):
|
||||
@ignore_warnings(category=RemovedInDjango19Warning)
|
||||
class SortedDictTests(SimpleTestCase):
|
||||
def setUp(self):
|
||||
super(SortedDictTests, self).setUp()
|
||||
self.d1 = SortedDict()
|
||||
|
@ -136,7 +137,8 @@ class SortedDictTests(IgnoreDeprecationWarningsMixin, SimpleTestCase):
|
|||
self.assertEqual(list(reversed(self.d2)), [7, 0, 9, 1])
|
||||
|
||||
|
||||
class MergeDictTests(IgnoreDeprecationWarningsMixin, SimpleTestCase):
|
||||
@ignore_warnings(category=RemovedInDjango19Warning)
|
||||
class MergeDictTests(SimpleTestCase):
|
||||
|
||||
def test_simple_mergedict(self):
|
||||
d1 = {'chris': 'cool', 'camri': 'cute', 'cotton': 'adorable',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue