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
|
# http://www.opensource.org/licenses/mit-license
|
||||||
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
|
# 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 pyvows import Vows
|
||||||
|
|
||||||
from django_pyvows import http_helpers
|
from django_pyvows import http_helpers
|
||||||
from django_pyvows.assertions import Model, Template
|
|
||||||
|
|
||||||
|
|
||||||
class DjangoContext(Vows.Context):
|
class DjangoContext(Vows.Context):
|
||||||
|
@ -43,18 +42,8 @@ class DjangoContext(Vows.Context):
|
||||||
from django.test.utils import modify_settings
|
from django.test.utils import modify_settings
|
||||||
return modify_settings(**kwargs)
|
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):
|
def get(self, path):
|
||||||
return http_helpers.get(path)
|
return http_helpers.get(path)
|
||||||
|
|
||||||
def post(self, path, params):
|
def post(self, path, params):
|
||||||
return http_helpers.post(path, params)
|
return http_helpers.post(path, params)
|
||||||
|
|
||||||
|
|
||||||
class DjangoHTTPContext(DjangoContext):
|
|
||||||
pass
|
|
||||||
|
|
Reference in a new issue