summaryrefslogtreecommitdiffstats
path: root/tests/test_lps_gen.py
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2019-07-13 18:47:08 -0400
committerrsiddharth <rsd@gnu.org>2019-07-13 18:47:08 -0400
commitdf19a818d8e7091d1d3a2b8d9c31954a50665a23 (patch)
treed0e935a07bd1101ba017ceebd619d718dd3e77dd /tests/test_lps_gen.py
parent8ca7c73df5994a30f3b1070f8c000beef454849e (diff)
lps_gen.py: Update template_read.
* lps_gen.py (template_read): Add exception handling for non-existent templates. * tests/test_lps_gen.py (TestTemplates.test_read): Add non-existent template test.
Diffstat (limited to 'tests/test_lps_gen.py')
-rw-r--r--tests/test_lps_gen.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py
index 26c6132..c4ff1dd 100644
--- a/tests/test_lps_gen.py
+++ b/tests/test_lps_gen.py
@@ -113,6 +113,9 @@ class TestTemplates(object):
assert type(t) is str
assert len(t) > 0
+ t = template_read('nonexistent.jinja2')
+ assert t is None
+
class TestLPiCal(object):
"""