Cookiecutter template for a Python package.
The full documentation is at http://greencard.rtfd.org.
pip install greencard
Then you can use the GreenCard decorator on your unittests to provide them with each and every card in the library:
from unittest import TestCase from greencard.decorator import GreenCard class CardTests(TestCase): @GreenCard('mylibrary.lbr') def execute(self, card): self.assertTrue(0 < card.code <= 1000)
The above will test each and every card in the database stored at mylibrary.lbr and ensure that their code is higher then 0 but no higher then 1000.
- Unittest decorator that provides a database of cards one at a time on test.
- First release on PyPI.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size greencard-0.1.0.tar.gz (4.6 kB)||File type Source||Python version None||Upload date||Hashes View|