praekelt / django-generate

Django slightly smarter than fixtures content generation app.
BSD 3-Clause "New" or "Revised" License
20 stars 5 forks source link

Cache output using JSON dumps #2

Open blanchardjeremy opened 12 years ago

blanchardjeremy commented 12 years ago

I have the following use case that I'd like to have supported:

The reason I need that is because I'd like to use the generated data in my unit tests. Right now, I use run_command('generate') for each test which is really slow. With these automatic json dumps, I could just specify generator.json which is much quicker.

Is this something you'd be willing to add?

shaunsephton commented 12 years ago

Yes, good use case. Can you implement and I'll merge (not sure when I'll have a chance to do it myself)?

blanchardjeremy commented 12 years ago

Unfortunately, I also don't have any time to do this right now.

I ended up just using dumpdata to get the same effects for now. Not a great solution but it works in the mean time.