🚦 A pyVows extension for testing Django applications.
This repository has been archived on 2023-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2011-08-18 20:08:10 -03:00
django_pyvows New version. 2011-08-18 18:47:23 -03:00
vows Refactory. 2011-08-18 19:39:52 -03:00
.gitignore Everything clean and working now. 2011-08-18 11:28:51 -03:00
Makefile Refactory. 2011-08-18 19:39:52 -03:00
README.md simple readme file 2011-08-18 20:08:10 -03:00
setup.py Version 0.1.0 2011-08-18 11:41:02 -03:00

Django pyvows

Pyvows

pyvows is a BDD (Behaviour Driven Development) inspired by Vows for node.js

More documentation about pyvows can be found at the project homepage

http://pyvows.org

Django-pyvows

Add to the

INSTALLED_APPS = (
                    ....
                    'django_pyvows',
                    ....
                 )

And create the vows as you usually would

from pyvows import Vows, expect

from django_pyvows.context import DjangoContext

@Vows.batch
class ContextTest(Vows.Context):

    def topic(self):
        return DjangoContext.start_environment(None)

    def should_be_an_error(self, topic):
        expect(topic).to_be_an_error()