diff options
author | rsiddharth <rsd@gnu.org> | 2019-07-13 18:34:09 -0400 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2019-07-13 18:34:09 -0400 |
commit | 8ca7c73df5994a30f3b1070f8c000beef454849e (patch) | |
tree | 356e8ac4f6f8bc7eec5c2feb1dadb62b61f9229b /tests | |
parent | 067cba74f598e596411e7006890646600397d767 (diff) |
lps_gen.py: Add template_read.
* lps_gen.py (template_read): New function.
* tests/test_lps_gen.py (TestTemplates): New test class.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_lps_gen.py | 14 |
1 files changed, 14 insertions, 0 deletions
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. |