From 8ca7c73df5994a30f3b1070f8c000beef454849e Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 13 Jul 2019 18:34:09 -0400 Subject: lps_gen.py: Add template_read. * lps_gen.py (template_read): New function. * tests/test_lps_gen.py (TestTemplates): New test class. --- tests/test_lps_gen.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/test_lps_gen.py') diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py index 8d57620..26c6132 100644 --- a/tests/test_lps_gen.py +++ b/tests/test_lps_gen.py @@ -100,6 +100,20 @@ class TestJSONUtils(object): os.chdir(self.old_cwd) +class TestTemplates(object): + """Petty tests for lp templates. + """ + + def test_read(self): + t = template_read('schedule.jinja2') + assert type(t) is str + assert len(t) > 0 + + t = template_read('speakers.jinja2') + assert type(t) is str + assert len(t) > 0 + + class TestLPiCal(object): """ Testing LPiCal class. -- cgit v1.2.3