<div dir="ltr">On Wed, Apr 23, 2014 at 4:32 PM, Mateusz Ĺoskot <span dir="ltr">&lt;<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I&#39;d like to sample for ideas about how to pass a set of parameters to<br>
unittest.TestCase objects in order to configure them at run-time<br>
with test data location, connection details to test databases, etc.</blockquote><div><br></div>What kind of parameters? Are you expecting something like<br></div><div class="gmail_quote">test1 --&gt; read data from /location/folder1<br>
test2 --&gt; read data from /newlocation/somedub/folder2<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">I normally go with configuration files. I like to have locality; the easier I can inspect and edit values, the better. Also, I&#39;d like to keep them in version control. If I already have a shell script that takes a set of parameters into os.env then I will expect that to be in version control. So let&#39;s keep them in file and no EXPORT.<br>
<br></div><div class="gmail_quote">John<br></div></div></div>