Thanks Dina, Fixture sounds interesting, as it will map Datasets to SqlAlchemy calls. Unfortunately I haven't proven usage within Openstack.
That's why I'm opening the discussion to the whole community : I don't know if there is any kind of "best practices" but at least some mistakes to prevent :-) Thanks, -Sylvain PS : Removing the Climate header for opening the discussion. ________________________________ De : Dina Belova [dbel...@mirantis.com] Date d'envoi : vendredi 4 octobre 2013 12:39 À : OpenStack Development Mailing List Objet : Re: [openstack-dev] [Climate] DB unit testing and the use of Fixture ? I think that's not a bad idea, but I prefer getting info from more experienced OpenStack guys too. So please, if you have idea on it, share it, guys. On Fri, Oct 4, 2013 at 2:23 PM, Sylvain Bauza <sylvain.ba...@bull.net<mailto:sylvain.ba...@bull.net>> wrote: Hi team, So far as I can see, the current way for unittest the DB APIs in Openstack is either mocking the DB or using a tmp/ram sqlite engine. I went through Fixture SQLAlchemy DataSets [1], I would give a try on it. Anyone shouting no ? Maybe other Openstack folks could shed some light on the right way/best practices in Openstack for unittesting ORM calls ? Thanks, -Sylvain [1] : http://farmdev.com/projects/fixture/using-loadable-fixture.html#an-example-of-loading-data-using-sqlalchemy _______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org<mailto:OpenStack-dev@lists.openstack.org> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev -- Best regards, Dina Belova Software Engineer Mirantis Inc.
_______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev