diff options
author | Mike Bayer <classic@zzzcomputing.com> | 2014-04-11 14:03:17 -0400 |
---|---|---|
committer | Mike Bayer <classic@zzzcomputing.com> | 2014-04-11 14:03:17 -0400 |
commit | da88eb7fd76c961c5101d35a0d84cbbdd412add0 (patch) | |
tree | ff2ae75c41352d8711c8fae3f1e348193893ca36 | |
parent | 1f6c6b50fed188ba68c2e98a3798a94de5df9307 (diff) | |
parent | 22548b3d45b13361fe1df9af8897e38c61bad894 (diff) | |
download | dogpile-cache-da88eb7fd76c961c5101d35a0d84cbbdd412add0.tar.gz |
Merged in zoomorph/dogpile.cache (pull request #15)
Fix Mako entry point
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | tests/cache/test_mako.py | 18 |
2 files changed, 19 insertions, 1 deletions
@@ -30,7 +30,7 @@ setup(name='dogpile.cache', namespace_packages=['dogpile'], entry_points=""" [mako.cache] - dogpile = dogpile.cache.plugins.mako:MakoPlugin + dogpile.cache = dogpile.cache.plugins.mako_cache:MakoPlugin """, zip_safe=False, install_requires=['dogpile.core>=0.4.1'], diff --git a/tests/cache/test_mako.py b/tests/cache/test_mako.py new file mode 100644 index 0000000..03c060c --- /dev/null +++ b/tests/cache/test_mako.py @@ -0,0 +1,18 @@ +from unittest import TestCase
+
+from dogpile.cache import util
+
+
+class MakoTest(TestCase):
+ """ Test entry point for Mako
+ """
+
+ def test_entry_point(self):
+ import pkg_resources
+
+ 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'"
|