[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] QtUnittest and Eric...
From:       Detlev Offenbach <detlev () die-offenbachs ! de>
Date:       2003-04-27 8:58:49
[Download RAW message or body]

Am Samstag, 26. April 2003 23:42 schrieb Timothy Grant:
> I have a test module that works very well using "unittest.main()"
>
> I recently decided to attempt to use a graphical debugger, so
> installed Eric3, but I cannot figure out what I have to do to get the
> GUI unittest to work.
>
> It always tells me that the module has no attribute "suite" so I
> created a suite function...
>
> def test_suite():
>     suite = unittest.TestSuite()
>     suite.addTest(
> 	TableInstantiationTestCase("test_Table_Object_Instantiates"))
>     return suite
>
> It still doesn't like it. So what's the trick? I'm sure it's something
> stupidly simple, but the combinations I've tried so far haven't
> worked.
>

Just rename your "test_suite()" function "suite()" and it should work.

def suite():
    s = unittest.TestSuite()
    s.addTest(
	TableInstantiationTestCase("test_Table_Object_Instantiates"))
    return s

Regards,
Detlev
-- 
Detlev Offenbach
detlev@die-offenbachs.de

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic