Skip to content.

Personal tools
You are here: Home » Members » chrism's Home » Why I Like ZODB » Mocking ORMs: ouch


Above in this comment thread: Why I Like ZODB » Dauntless!!!

Mocking ORMs: ouch

Posted by slinkp at 2012-05-22 01:45 PM
I read this and thought "hmm, I bet it's not *that* hard" ... ha ha ha. I spent a little while trying to see if I could mock up a comparable Django view using a Django model. I figured it should be possible using mock (my favorite mocking tool so far), and found mock-django on pypi which looks somewhat promising though totally undocumented.

I kicked the problem around for a while and decided I don't have enough time to figure out how to make it work without a database, so that's not encouraging :-p

Would love to see somebody else have a go at it.