3 ms·
The testing code looks horribly un-Pythonic to me, and I really don't think one should have to download a Java JAR to test a Python framework.
by LeafStorm 15y ago
The testing code looks horribly un-Pythonic to me, and I really don't think one should have to download a Java JAR to test a Python framework.
- amccloud 15y agoWhat doesn't look pythonic to you? Looks like he uses unittest for testing python and Selenium (java jar, certainly not required) for testing the frontend (html/js/rendering) in browser.
- LeafStorm 15y ago`javaStyleMethodNames` and using `self.assertSomething`. Despite its inclusion in the standard library, `unittest` is not a very Pythonic library (it comes from the days when most of the advanced portions of the stdlib was ported over from Java). Nose is slightly better and Attest[1] is the only one that I would really call "Pythonic." [1]: http://packages.python.org/Attest/ http://packages.python.org/Attest/
- catch23 15y agoSelenium requires java. There are python bindings to selenium-rc, but you still need the rc server. Normally I don't do selenium so early in the code process, but it isn't bad either.
- akavlie 15y agoSelenium 1.x does, but 2.x talks straight to the web browser via WebDriver. That may not be a technically accurate description of what's going on, but to the developer that's what it looks like. No Java server to start up.