<div dir="ltr">I think that's not a bad idea, but I prefer getting info from more experienced OpenStack guys too.<div style>So please, if you have idea on it, share it, guys.</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Fri, Oct 4, 2013 at 2:23 PM, Sylvain Bauza <span dir="ltr"><<a href="mailto:Sylvain.Bauza@bull.net" target="_blank">Sylvain.Bauza@bull.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi team,<br>
<br>
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.<br>
I went through Fixture SQLAlchemy DataSets [1], I would give a try on it. Anyone shouting no ?<br>
<br>
Maybe other Openstack folks could shed some light on the right way/best practices in Openstack for unittesting ORM calls ?<br>
<br>
Thanks,<br>
-Sylvain<br>
<br>
[1] : <a href="http://farmdev.com/projects/fixture/using-loadable-fixture.html#an-example-of-loading-data-using-sqlalchemy" target="_blank">
http://farmdev.com/projects/fixture/using-loadable-fixture.html#an-example-of-loading-data-using-sqlalchemy</a></div>
</div>

<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><p style="font-size:small;margin:0px;font-family:Helvetica">
Best regards,</p><p style="font-size:small;margin:0px;font-family:Helvetica">Dina Belova</p><p style="font-size:small;margin:0px;font-family:Helvetica">Software Engineer</p><p style="font-size:small;margin:0px;font-family:Helvetica">
Mirantis Inc.</p></div></div>
</div>