Fixed #28869 -- Made tagged test classes and methods inherit tags from parents.

This commit is contained in:
Will Ayd 2017-12-01 11:00:45 -05:00 committed by Tim Graham
parent acd3baf2ae
commit 09530e61a0
6 changed files with 66 additions and 1 deletions

View file

@ -0,0 +1,29 @@
from unittest import TestCase
from django.test import tag
@tag('foo')
class FooBase(TestCase):
pass
class Foo(FooBase):
def test_no_new_tags(self):
pass
@tag('baz')
def test_new_func_tag(self):
pass
@tag('bar')
class FooBar(FooBase):
def test_new_class_tag_only(self):
pass
@tag('baz')
def test_new_class_and_func_tags(self):
pass