Django 1.8 support / Project revamp #13

Merged
rafaelcaricio merged 20 commits from django-1.8-support into master 2015-07-20 07:57:38 +00:00
2 changed files with 1 additions and 12 deletions
Showing only changes of commit c3d05f9714 - Show all commits

View file

@ -8,4 +8,4 @@
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
from context import DjangoContext, DjangoHTTPContext
from context import DjangoContext # NOQA

View file

@ -14,7 +14,6 @@ import django
from pyvows import Vows
from django_pyvows import http_helpers
from django_pyvows.assertions import Model, Template
class DjangoContext(Vows.Context):
@ -43,18 +42,8 @@ class DjangoContext(Vows.Context):
from django.test.utils import modify_settings
return modify_settings(**kwargs)
def template(self, template_name, context):
return Template(template_name, context)
def model(self, model_class):
return Model(self, model_class)
def get(self, path):
return http_helpers.get(path)
def post(self, path, params):
return http_helpers.post(path, params)
class DjangoHTTPContext(DjangoContext):
pass