Django - testing using large tables of static data
Posted
by Michael B
on Stack Overflow
See other posts from Stack Overflow
or by Michael B
Published on 2010-05-17T12:46:29Z
Indexed on
2010/05/17
12:50 UTC
Read the original article
Hit count: 526
I am using "manage.py test" along with a JSON fixture I created using using 'dumpdata'
My problem is that several of the tables in the fixture are very large (for example one containing the names of all cities in the US) which makes running a test incredibly slow.
Seeing as several of these tables are never modified by the program (eg - the city names will never need to be modified), it doesn't make much sense to create and tear down these tables for every test run.
Is there a better way to be testing this code using this kind of data?
© Stack Overflow or respective owner