<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">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">
http://farmdev.com/projects/fixture/using-loadable-fixture.html#an-example-of-loading-data-using-sqlalchemy</a></div>
</body>
</html>