Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Cookiecutter template for a Python package.

Project description

https://badge.fury.io/py/greencard.png https://travis-ci.org/Nekroze/greencard.png?branch=master https://pypip.in/d/greencard/badge.png

Documentation

The full documentation is at http://greencard.rtfd.org.

Quickstart

Install greencard:

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.

Features

  • Unittest decorator that provides a database of cards one at a time on test.

History

0.1.0

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for greencard, version 0.1.0
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

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page