summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libreplanet-templates/2016/lp-schedule.jinja22
-rw-r--r--tests/test_lps_gen.py17
2 files changed, 18 insertions, 1 deletions
diff --git a/libreplanet-templates/2016/lp-schedule.jinja2 b/libreplanet-templates/2016/lp-schedule.jinja2
index 3a3d175..1d7cd92 100644
--- a/libreplanet-templates/2016/lp-schedule.jinja2
+++ b/libreplanet-templates/2016/lp-schedule.jinja2
@@ -39,7 +39,7 @@
{# make room macro #}
{% macro mk_room(room) %}
{% if room|lower != 'roomtba' %}
- <span class="label label-default">{{ room }}</span>
+ <span class="room label label-default">{{ room }}</span>
{% endif %}
{% endmacro %}
diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py
index 254f384..0a8efff 100644
--- a/tests/test_lps_gen.py
+++ b/tests/test_lps_gen.py
@@ -572,6 +572,23 @@ class TestLPSTBA(object):
assert_equal(sp_block, speakers.pop(0))
+ def test_LP_room(self):
+ """Tests the non-existence of `RoomTBA` in gen. HTML.
+
+ """
+ rooms = [
+ 'Room 32-141',
+ 'Room 32-144',
+ 'Room 31-123',
+ 'Room 32-144',
+ 'Room 42-042',
+ ]
+
+ for sp in self.soup.find_all(class_='room'):
+ room_block = sp.string
+ assert_equal(room_block, rooms.pop(0))
+
+
def teardown(self):
"""Cleans up things after each test in this class.