diff options
| author | Michael Merickel <michael@merickel.org> | 2018-10-14 23:16:48 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-10-14 23:46:11 -0500 |
| commit | dd3cc81f75dcb5ff96e0751653071722a15f46c2 (patch) | |
| tree | 7cfd6140211a21dedd2ddfeb4aa77b7ff4339fa9 /tests/test_config/test_factories.py | |
| parent | eadaee315eb142d1537d617da58343e3d7f1df0a (diff) | |
| download | pyramid-dd3cc81f75dcb5ff96e0751653071722a15f46c2.tar.gz pyramid-dd3cc81f75dcb5ff96e0751653071722a15f46c2.tar.bz2 pyramid-dd3cc81f75dcb5ff96e0751653071722a15f46c2.zip | |
fix the tests to import from the tests package instead of pyramid.tests
Diffstat (limited to 'tests/test_config/test_factories.py')
| -rw-r--r-- | tests/test_config/test_factories.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_config/test_factories.py b/tests/test_config/test_factories.py index 7e6ea0476..ea8dec720 100644 --- a/tests/test_config/test_factories.py +++ b/tests/test_config/test_factories.py @@ -1,6 +1,6 @@ import unittest -from pyramid.tests.test_config import dummyfactory +from . import dummyfactory class TestFactoriesMixin(unittest.TestCase): def _makeOne(self, *arg, **kw): @@ -19,7 +19,7 @@ class TestFactoriesMixin(unittest.TestCase): from pyramid.interfaces import IRequestFactory config = self._makeOne(autocommit=True) config.set_request_factory( - 'pyramid.tests.test_config.dummyfactory') + 'tests.test_config.dummyfactory') self.assertEqual(config.registry.getUtility(IRequestFactory), dummyfactory) @@ -34,7 +34,7 @@ class TestFactoriesMixin(unittest.TestCase): from pyramid.interfaces import IResponseFactory config = self._makeOne(autocommit=True) config.set_response_factory( - 'pyramid.tests.test_config.dummyfactory') + 'tests.test_config.dummyfactory') self.assertEqual(config.registry.getUtility(IResponseFactory), dummyfactory) @@ -59,7 +59,7 @@ class TestFactoriesMixin(unittest.TestCase): def test_set_root_factory_dottedname(self): from pyramid.interfaces import IRootFactory config = self._makeOne() - config.set_root_factory('pyramid.tests.test_config.dummyfactory') + config.set_root_factory('tests.test_config.dummyfactory') self.assertEqual(config.registry.queryUtility(IRootFactory), None) config.commit() self.assertEqual(config.registry.getUtility(IRootFactory), dummyfactory) @@ -76,7 +76,7 @@ class TestFactoriesMixin(unittest.TestCase): def test_set_session_factory_dottedname(self): from pyramid.interfaces import ISessionFactory config = self._makeOne() - config.set_session_factory('pyramid.tests.test_config.dummyfactory') + config.set_session_factory('tests.test_config.dummyfactory') self.assertEqual(config.registry.queryUtility(ISessionFactory), None) config.commit() self.assertEqual(config.registry.getUtility(ISessionFactory), |
