[gsoc-dev] [GWM Tests] Need help

pranjal mittal mittal.pranjal at gmail.com
Thu Aug 29 18:54:49 UTC 2013


Oh, is that because the tearDown is not exhaustive? (as the setUp)

btw.. I just wrote my first django tests (for ganetiviz) [1]. :)
Via the test case I verified that the JSON output via ganetiviz is in an
expected format.
I am thinking on the other aspects I could test.

I am also curious to know, what else I must improve, to make feature/13569
suitable to be merged into develop?
Any  possible optimizations you suggest, that could improve speed with huge
datasets?

[1]
https://github.com/pramttl/ganeti_webmgr/blob/feature/13569/ganeti_web/ganetiviz/tests/views.py


Cheers,
- Pranjal


On Thu, Aug 29, 2013 at 11:41 PM, Chance Zibolski <chance at osuosl.org> wrote:

> Make sure you set it back before you start runserver or you'll get some
> wonky testmodel users in your users db table. Its a bad hack we need to
> still fix :)
>
>
> On Thu, Aug 29, 2013 at 1:11 AM, pranjal mittal <mittal.pranjal at gmail.com>wrote:
>
>> Cool! It works now. :)
>>
>>
>> On Thu, Aug 29, 2013 at 1:31 PM, Piotr Banaszkiewicz <
>> piotr at banaszkiewicz.org> wrote:
>>
>>> Set
>>>
>>> TESTING = True
>>>
>>> In your settings file and you should be good to go.
>>>
>>>    *From: *pranjal mittal
>>> *Sent: *czwartek, 29 sierpnia 2013 09:59
>>> *To: *gsoc-dev at lists.osuosl.org
>>> *Subject: *[gsoc-dev] [GWM Tests] Need help
>>>
>>> Hello Everyone,
>>>
>>> I was trying to write some tests.
>>> I noticed that this line is causing problems when I try to run GWM tests.
>>>
>>> *from object_permissions import get_user_perms*
>>>
>>> It gives an import error saying-
>>> *ImportError: cannot import name TestModel*
>>>
>>>
>>> Do I need to update the object_permissions app or is there some bug in
>>> here?
>>>
>>> Here is the complete traceback of the error:
>>> http://pastebin.osuosl.org/3163/
>>>
>>>
>>>
>>> Thanking You,
>>> - Pranjal
>>>
>>>
>>> --
>>> Best Regards,
>>> Pranjal Mittal
>>> B.Tech.  2014
>>> Indian Institute of Technology,BHU
>>> Varanasi, U.P,
>>> India
>>>
>>> Github <http://github.com/pramttl> | LinkedIn<http://in.linkedin.com/pub/pranjal-mittal/26/660/318/>|
>>> Blog <http://pranjalmittal.in>
>>>
>>>
>>> _______________________________________________
>>> gsoc-dev mailing list
>>> gsoc-dev at lists.osuosl.org
>>> http://lists.osuosl.org/mailman/listinfo/gsoc-dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Pranjal Mittal
>> B.Tech.  2014
>> Indian Institute of Technology,BHU
>> Varanasi, U.P,
>> India
>>
>> Github <http://github.com/pramttl> | LinkedIn<http://in.linkedin.com/pub/pranjal-mittal/26/660/318/>|
>> Blog <http://pranjalmittal.in>
>>
>> _______________________________________________
>> gsoc-dev mailing list
>> gsoc-dev at lists.osuosl.org
>> http://lists.osuosl.org/mailman/listinfo/gsoc-dev
>>
>>
>


-- 
Best Regards,
Pranjal Mittal
B.Tech.  2014
Indian Institute of Technology,BHU
Varanasi, U.P,
India

Github <http://github.com/pramttl> |
LinkedIn<http://in.linkedin.com/pub/pranjal-mittal/26/660/318/>|
Blog <http://pranjalmittal.in>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/gsoc-dev/attachments/20130830/069ffdad/attachment.html>


More information about the gsoc-dev mailing list