﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22989	TestCase fixtures not found if inherited from other than first base class	vilcans	nobody	"This is a regression from 1.6.5, where I inherited the `fixtures` attribute from a mixin class. In 1.7c1, Django acts like the attribute isn't there.

== How to reproduce ==

{{{
from django.test import TestCase


class Mixin(object):
    fixtures = ('my_fixture',)


class Base(TestCase):
    pass


class FixtureTest(Base, Mixin):
    def test_dummy(self):
        pass

}}}

In 1.7c1, running this test gives no warning that the `my_fixture` doesn't exist, which shows that Django doesn't try to load it.

== Workaround ==

Swapping the order of the base classes like this gives the expected result:

{{{
class FixtureTest(Mixin, Base):
}}}

Now running the test, Django tries to load the fixture, as it should:

{{{
/usr/local/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py:225: UserWarning: No fixture named 'my_fixture' found.
  warnings.warn(""No fixture named '%s' found."" % fixture_name)
}}}"	Uncategorized	closed	Testing framework	1.7-rc-1	Normal	wontfix			Unreviewed	0	0	0	0	0	0
