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.
django-pyvows/django_pyvows/context.py
2011-05-06 00:48:39 -03:00

23 lines
527 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
# django-pyvows extensions
# https://github.com/rafaelcaricio/django-pyvows
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
from pyvows import Vows
from django.test.utils import setup_test_environment, teardown_test_environment
class DjangoContext(Vows.Context):
def _set_up_enviroment(self):
setup_test_environment()
def __call__(self):
self._setup_enviroment()