annotate tests/test_included.py @ 257:28d76b139fdd

add test for included templates
author Jeff Hammel <k0scist@gmail.com>
date Sat, 27 May 2017 14:22:41 -0700
parents
children e21f013586d0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
257
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 """
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 tests for templates included in the package
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 included_templates = set(['python-package'])
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 from makeitso.makeitso import get_entry_points
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 def test_included_template():
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 """ensure we are packaging included template correctly"""
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 # ensure template is present in entry points
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 entry_points = get_entry_points()
28d76b139fdd add test for included templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 assert included_templates.issubset(entry_points)