[Biopython-dev] [Bug 2640] Proposal: doctest for SeqRecord/biopython

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Thu Nov 6 19:41:44 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2640





------- Comment #9 from dalloliogm at gmail.com  2008-11-06 14:41 EST -------
(In reply to comment #8)
> I've added a few doctests to SeqRecord.py in CVS revision 1.24, plus the simple
> unit test from comment 7 to make sure these get validated as part of the
> Biopython test suite.
> 
> How does that look to you Marco?  I've kept the __init__ example short, not
> doing anything with annotations.

I think they look ok.. to me, they seem good examples of how to use the module.


> Do you think we should also have the __main__ trick in all modules with
> doctests?

I am not really experienced in managing such big projects... but I think it
could be ok, at least for now.

I would personally keep the __init__ trick for every module, because it would
make easier to test a single module when you are still writing it.

But to test many modules subsequently, the code you posted in in #7 is the way
to do.

so... in short, I don't know!! :)


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list