loading fixtures for django tests

Posted by alexarsh on Stack Overflow See other posts from Stack Overflow or by alexarsh
Published on 2010-02-03T07:31:41Z Indexed on 2010/05/07 2:08 UTC
Read the original article Hit count: 455

Filed under:
|
|
|

Hi,

I want to use some fixtures in my tests. I have cms_sample app and a fixtures folder inside with cms_sample_data.xml I use the following in my test.py:

class Funtionality(TestCase): fixtures = ['cms_sample_data']

I do use TestCase of django.tests and not unittest.

But the fixtures are not loaded. What am I missing? Thanks, Arshavski Alexander.

© Stack Overflow or respective owner

Related posts about django

Related posts about unit-testing