diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-11 14:22:59 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-11 14:22:59 -0400 |
commit | 87157a9a97fdeaa6f089b209eada8bd316e81761 (patch) | |
tree | d3068088bb6c6bfcd842b79e69b67412c8779f9e /tests/cache/test_mako.py | |
parent | da88eb7fd76c961c5101d35a0d84cbbdd412add0 (diff) | |
download | dogpile-cache-87157a9a97fdeaa6f089b209eada8bd316e81761.tar.gz |
- add support for py.test
- make test_mako not actually fail if the plugin isn't found, only if it actually fails to load
if found
Diffstat (limited to 'tests/cache/test_mako.py')
-rw-r--r-- | tests/cache/test_mako.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/cache/test_mako.py b/tests/cache/test_mako.py index 03c060c..d3f0656 100644 --- a/tests/cache/test_mako.py +++ b/tests/cache/test_mako.py @@ -9,10 +9,9 @@ class MakoTest(TestCase): def test_entry_point(self):
import pkg_resources
-
+
+ # if the entrypoint isn't there, just pass, as the tests can be run
+ # without any setuptools install
for impl in pkg_resources.iter_entry_points("mako.cache", "dogpile.cache"):
- print impl
impl.load()
- return
- else:
- assert 0, "Missing entry point 'dogpile.cache' for 'mako.cache'"
+
|