/srv/irclogs.ubuntu.com/2010/11/16/#ubuntu-testing.txt

=== pokrak|2 is now known as PoKrAk
=== xfaf is now known as zul
bdmurrayara / jibel: so I'm trying to get a mago test to run and I'm having a hard time15:55
bdmurrayPYTHONPATH=. ./bin/mago -a gedit15:57
bdmurraythat results in an ImportError for gedit15:58
jibelbdmurray, can you pastebin the error ?16:12
bdmurrayjibel: http://pastebin.ubuntu.com/533072/16:14
jibelbdmurray, main is the directory where you've pulled the branch ? Do you have ~/source-trees/mago/main/mago/test_suite/gedit.py ?16:20
bdmurrayjibel: yes and I can manually import it in that directory16:21
jibelbdmurray, any useful information if you run with --log-level=debug ?16:24
=== You're now known as ubuntulog
arabdmurray, it is PYTHONPATH, rather than PYTHON_PATH16:26
arain the pastebin it says PYTHON_PATH16:27
jibelara, :-) thanks a bunch16:27
bdmurraywell, that was dumb16:28
bdmurraythanks!16:29
arabdmurray, np :)16:29
bdmurrayara: I also noticed there is a test for bug 631665 but it isn't identified as one.  What is the right way to do that?16:30
ubot4Launchpad bug 631665 in gcalctool (Ubuntu Maverick) (and 3 other projects) "Calculator does not show thousands seperator despite being chosen in preferences (affects: 10) (dups: 4) (heat: 103)" [Medium,Fix committed] https://launchpad.net/bugs/63166516:30
arabdmurray, what do you mean by not identified as one?16:31
bdmurrayara: well I'd expect there to something in the test to say if this fails look at this bug16:31
bdmurrayara: so one could see if a patch was dropped etc....16:32
arabdmurray, mmm, yes, I guess putting in the README should be enough16:32
bdmurrayara: yes, that would work for me16:32
arabdmurray, each app folder (i.e. gedit) contains a README file to put information about the tests16:33
arabdmurray, I will add it there16:33
bdmurrayara: yes, I saw that16:33
arabdmurray, thanks!16:33
bdmurrayfinally how do I figure out what to use in input for the mod button in gcalc?16:34
bdmurrayI saw Cs9 for the square root of 916:34
bdmurrayara: ^?16:35
=== You're now known as ubuntulog_
=== You're now known as ubuntulog
jibelbdmurray, I've patched mago to get rid of PYTHONPATH.17:05
jibelara ^17:05
=== yofel_ is now known as yofel
arajibel, great :)17:06
jibelara, that makes less frightening command lines :-)17:08
bdmurraynow my test is getting a traceback17:08
bdmurrayafaict modulus should be " mod "17:08
bdmurrayand so I have a key error for ' '17:08
bdmurrayis that the BUTTONS dict in gcalc.py?17:10
jibelbdmurray, yes. To discover the id of the components you can either use accerciser17:14
jibelbdmurray, or app=ooldtp.context('frmCalculator')17:14
jibelsorted(app.getobjectlist())17:15
jibelin a python console17:15
bdmurrayjibel: what setup is required for the python console option?17:16
jibelbdmurray, nothing special, import ldtp, ooldtp17:17
pedro_just importing ldtp should be enough right?17:19
pedro_like:17:19
pedro_import ldtp17:19
pedro_sorted (ldtp.getobjectlist('frmblah'))17:19
pedro_you'd probably get the same result17:20
bdmurrayIs this information somewhere @ mago.ubuntu.com?17:20
pedro_i didn't see anything about this on the wiki pages...17:21
pedro_i've using magomatic and later discover the getobjectlist17:21
jibelpedro_, right that's exactly the same,17:21
pedro_which is pretty useful if the widget you're working on  is changing17:21
pedro_for example a gtkfilechooser17:22
jibelbdmurray, no, not yet on mago.u.c, the reference documentation is there http://ldtp.freedesktop.org/wiki/17:22
=== Claudinux_ is now known as Claudinux
bdmurrayjibel: here is my diff is there anything else required?  updating the README?17:25
bdmurrayhttp://pastebin.ubuntu.com/533124/17:25
jibelbdmurray, pedro_, for introspection you'll also find the methods getobjectinfo and getobjectproperty quite useful.17:25
bdmurrayjibel: ee, line 12 should be 7921m1417:26
bdmurrayjibel: here http://pastebin.ubuntu.com/533127/17:27
jibelbdmurray, also add the testcase to testcase.qa.u.c and add a note to indicate it's automated.17:27
bdmurrayjibel: there is no tool to update testcases.qa?17:29
jibelbdmurray,  not that I know, you have to log in and manually add the testcase. we definitely need something, I've ~ 450 testcases to add (http://people.canonical.com/~j-lallement/natty/testcases.html) and I probably won't do that manually.17:33
bdmurrayjibel: right and looking at the gcalc page one test didn't get added17:34
bdmurrayhttps://code.launchpad.net/~brian-murray/mago/gcalc-test-modulus/+merge/4098717:46
=== Claudinux_ is now known as Claudinux

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!