On Jan 5, 2009, at 3:57 PM, Kristian Thy wrote: > On Mon, Jan 05, Sean Gillies wrote: >> Over the next few months, I plan to fill out the tests for as close >> to >> 100% as possible, > > I've been wanting to take a look at nosetests, but since I haven't > been > doing any pythoneering lately at work I haven't gotten around to it. > Are > there any of the above that could be parcelled out for me to look at? > > (I know I could just start working on them, but if you already know > where you're going to start I'd prefer avoiding duplicating your > work.) > > \\kristian > -- > ... et nemo ex vobis interrogat me: »Quo vadis?«
Here are brand new docstring tests: http://trac.gispython.org/lab/browser/Shapely/trunk/shapely/geometry/base.py#L57 and some associated xUnit type tests: http://trac.gispython.org/lab/browser/Shapely/trunk/tests/test_base.py#L24 Nose isn't a new way of writing tests, it's a new way of running tests. The nice thing about nose is that you don't have to mess with setting up suites and layers (as with Zope's test runner), just write classes with test functions. A command like $ nosetest --with-doctest shapely/geometry/base.py tests/test_base.py runs all of the above tests. I'm trying to test the "public" API in docstrings and "private" and supporting code in the other unit tests. Cheers, Sean _______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
