Fix tests
This commit is contained in:
parent
4e450da041
commit
c3d05f9714
2 changed files with 1 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue