Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
hadrien committed Apr 16, 2014
2 parents 0d8d650 + a9be257 commit b59bc1a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
5 changes: 4 additions & 1 deletion pyramid_rest/tests/functional/__init__.py
Expand Up @@ -19,7 +19,10 @@ def setUp(self):
def mongo_db(self):
from pyramid_mongokit import IMongoConnection
return getattr(
self.app.app.registry.getUtility(IMongoConnection),
self.app.app.registry.getUtility(
IMongoConnection,
'mongo_connection',
),
os.environ['MONGO_DB_NAME']
)

Expand Down
7 changes: 1 addition & 6 deletions pyramid_rest/tests/unittests/test_renderer.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import unittest
from decimal import Decimal
from bson.objectid import ObjectId
Expand Down Expand Up @@ -29,9 +30,3 @@ def test_encode_decode(self):
result = bson_loads(bson_dumps(o))

self.assertEqual(o, result)


class TestRestFactory(unittest.TestCase):

def test_call(self):
from pyramid_rest.renderer import Factory
5 changes: 1 addition & 4 deletions setup.py
@@ -1,9 +1,6 @@
#!/usr/bin/env python
import setuptools

if not getattr(setuptools, "_distribute", False):
raise SystemExit("""Setuptools is not supported. Please use Distribute""")

setup_requires = [
'd2to1',
]
Expand All @@ -19,7 +16,7 @@
'yanc',
]

extras_require = {'mongo': ['pyramid_mongokit']}
extras_require = {'mongo': ['pyramid_mongokit==0.0.4']}

setuptools.setup(
setup_requires=setup_requires,
Expand Down

0 comments on commit b59bc1a

Please sign in to comment.