Skip to content

Commit

Permalink
delete mock depency from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uralbash committed Jul 10, 2015
1 parent f1c90c8 commit 98c5c4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,7 +1,7 @@
all: test

test:
nosetests --with-coverage --cover-package pyramid_sacrud --cover-erase --with-doctest --nocapture
python setup.py test

coverage: test
coverage html
Expand Down
23 changes: 14 additions & 9 deletions pyramid_sacrud/tests/test_views.py
Expand Up @@ -10,21 +10,26 @@
Tests of viwes
"""
from collections import OrderedDict
from mock import Mock

from nose.tools import raises

from pyramid import testing
from pyramid.httpexceptions import HTTPNotFound

from pyramid_sacrud.security import (PYRAMID_SACRUD_CREATE,
PYRAMID_SACRUD_HOME, PYRAMID_SACRUD_LIST,
PYRAMID_SACRUD_UPDATE)
from pyramid_sacrud.security import (
PYRAMID_SACRUD_CREATE,
PYRAMID_SACRUD_HOME,
PYRAMID_SACRUD_LIST,
PYRAMID_SACRUD_UPDATE
)

from . import TransactionalTest
from ..views import sa_home
from ..views.CRUD import CRUD, Add, Delete, List
from .models import Base, Session, engine
from .models.auth import Groups, Profile, User, Tree # noqa
from ..views.CRUD import Add, CRUD, Delete, List
from .models import Base, engine, Session
from .models.auth import Groups, Profile, Tree, User # noqa


class Mock(object):
pass


class _TransactionalFixture(TransactionalTest):
Expand Down
1 change: 0 additions & 1 deletion requirements-test.txt
@@ -1,4 +1,3 @@
nose
mock
coverage
webtest

0 comments on commit 98c5c4c

Please sign in to comment.