Hi Kumar,<br>   First of all thanks a lot for the response. <br><br><div class="gmail_quote">On Wed, Nov 18, 2009 at 11:42 PM, Kumar McMillan <span dir="ltr">&lt;<a href="mailto:kumar.mcmillan@gmail.com">kumar.mcmillan@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Wed, Nov 18, 2009 at 10:51 AM, Madhusudan C.S &lt;<a href="mailto:madhusudancs@gmail.com">madhusudancs@gmail.com</a>&gt; wrote:<br>


&gt; Hello everyone,<br>
&gt;    I am using fixture module for testing purposes on Appengine. When I run<br>
&gt; the tests, I get this error<br>
<br>
</div>Hi Madhusudan.  By default when loading a class named UserData,<br>
fixture will look for an appengine db model class named User.  The<br>
error indicates that fixture is not finding that User class in the<br>
module you have sent to GoogleDatastoreFixture(env=your_module)<br></blockquote><div><br>The data models for our app doesn&#39;t reside in a single Python module, but<br>spread across several Python modules in the package called models. <br>

<br>Can you please tell me what should I do in this case? How should my <br><br>datafixture = GoogleDatastoreFixture(env=models, style=NamedDataStyle())  # Note models is a package containing models in each file, for example user model is in the module user.py.<br>

self.data = datafixture.data(datasets.UserData)<br><br>be rewritten. Please help me. <br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div><div></div><div class="h5"><br>
&gt;<br>
&gt; Traceback (most recent call last):<br>
&gt;   File<br>
&gt; &quot;/media/python/workspace/melange-ghop-integration/tests/app/soc/modules/ghop/views/models/test_task.py&quot;,<br>
&gt; line 130, in setUp<br>
&gt;     self.data.setup()<br>
&gt;   File<br>
&gt; &quot;/media/python/workspace/melange-ghop-integration/eggs/fixture-1.3.1-py2.5.egg/fixture/base.py&quot;,<br>
&gt; line 71, in setup<br>
&gt;     self.loader.load(self.data)<br>
&gt;   File<br>
&gt; &quot;/media/python/workspace/melange-ghop-integration/eggs/fixture-1.3.1-py2.5.egg/fixture/loadable/loadable.py&quot;,<br>
&gt; line 193, in load<br>
&gt;     self.wrap_in_transaction(loader, unloading=False)<br>
&gt;   File<br>
&gt; &quot;/media/python/workspace/melange-ghop-integration/eggs/fixture-1.3.1-py2.5.egg/fixture/loadable/loadable.py&quot;,<br>
&gt; line 310, in wrap_in_transaction<br>
&gt;     routine()<br>
&gt;   File<br>
&gt; &quot;/media/python/workspace/melange-ghop-integration/eggs/fixture-1.3.1-py2.5.egg/fixture/loadable/loadable.py&quot;,<br>
&gt; line 192, in loader<br>
&gt;     self.load_dataset(ds)<br>
&gt;   File<br>
&gt; &quot;/media/python/workspace/melange-ghop-integration/eggs/fixture-1.3.1-py2.5.egg/fixture/loadable/loadable.py&quot;,<br>
&gt; line 217, in load_dataset<br>
&gt;     self.attach_storage_medium(ds)<br>
&gt;   File<br>
&gt; &quot;/media/python/workspace/melange-ghop-integration/eggs/fixture-1.3.1-py2.5.egg/fixture/loadable/loadable.py&quot;,<br>
&gt; line 375, in attach_storage_medium<br>
&gt;     self.Medium, ds.meta.storable_name, ds, repr_env))<br>
&gt; StorageMediaNotFound: could not find &lt;class<br>
&gt; &#39;fixture.loadable.google_datastore_loadable.EntityMedium&#39;&gt; &#39;User&#39; for<br>
&gt; dataset &lt;UserData at 0xa84decc with keys [&#39;user_0001&#39;]&gt; in self.env (&lt;type<br>
&gt; &#39;module&#39;&gt;)<br>
&gt;<br>
&gt; Can some one please tell me why I get this error and what I should to do to<br>
&gt; fix this?<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Thanks and regards,<br>
&gt;  Madhusudan.C.S<br>
&gt;<br>
&gt; Blogs at: <a href="http://www.madhusudancs.info" target="_blank">www.madhusudancs.info</a><br>
&gt; My Online Identity: madhusudancs<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; testing-in-python mailing list<br>
&gt; <a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
&gt; <a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br>Thanks and regards,<br>  Madhusudan.C.S<br><br>Blogs at: <a href="http://www.madhusudancs.info">www.madhusudancs.info</a><br>My Online Identity: madhusudancs<br>