[Openstack] mocking database and stubs

2011-09-15 Thread Pitucha, Stanislaw Izaak
Hi all, I've got some questions about testing the bits affecting the database. Currently some places use mox, some use db_fake / stubs - this unfortunately fails when I try to add another test: In VlanManager.setup_compute_network(), there's a call to db.network_get_by_instance. I needed to

Re: [Openstack] mocking database and stubs

2011-09-15 Thread Jay Pipes
On Thu, Sep 15, 2011 at 12:24 PM, Pitucha, Stanislaw Izaak stanislaw.pitu...@hp.com wrote: Hi all, I've got some questions about testing the bits affecting the database. Currently some places use mox, some use db_fake / stubs - this unfortunately fails when I try to add another test: In