Hi gang: So Seth's inPrcoRange stuff is perfect for unit tests. I added the following to yum:
yum/
test/
alltests.py
packagetests.py
settestpath.py
settestpath.py does sys.path manipulation, so you can run the unit tests
from all over the place. I'm not thrilled with it, so other solutions
are welcome. packagetests.py contains a simple test for inPrcoRange, and
alltests.py contains a suite that you can add other tests to, so that
all tests can be run from one file.
There are other ways to gather up tests and suites (many of them using
magical introspection), but I find this layout, with its explicit
declarations of the tests, to be easiest for running all tests, or just
one module of tests. Though I'm all for less code, so suggest any
alternatives.
-James
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Yum-devel mailing list [email protected] https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
