summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2018-03-22 04:19:04 +0000
committerrsiddharth <rsd@gnu.org>2018-03-22 04:34:33 +0000
commit9f2f570a45a4b01a14b5d03cb598ab73114d9eb7 (patch)
tree19c79a456a3ba0a4a3971871c0234f4725562699 /tests
parent8f83f1b38c108615e39c697c08f2172b8cafd8f8 (diff)
lps_gen.py: Update LPiCal timeslot regex slurping.
Now matches time slots of the form: 09:45 - 10:30: Lorem ipsum dolor sit. or 09:45 - 10:30 - Lorem ipsum dolor sit. or 09:45 - 10:30 * lps_gen.py (LPiCal.timeslot_r): Update variable. (LPiCal.get_timeslot): Update method. * tests/test_lps_gen.py (TestLPiCal.test_get_timeslot): Update test.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_lps_gen.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py
index 4ac2730..e32b52e 100644
--- a/tests/test_lps_gen.py
+++ b/tests/test_lps_gen.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2015-2016 lpschedule-generator contributors. See CONTRIBUTORS.
+# Copyright (C) 2018 lpschedule-generator contributors. See CONTRIBUTORS.
#
# This file is part of lpschedule-generator.
#
@@ -188,6 +188,14 @@ class TestLPiCal(object):
[None, None, None],
' ':
[None, None, None],
+ '10:00 - 10:45 - Keynote':
+ ['10:00', '10:45', 'Keynote'],
+ '16:20 - 17:05':
+ ['16:20', '17:05', ''],
+ '16:25-17:25':
+ ['16:25', '17:25', ''],
+ '17:05-17:15 - Break':
+ ['17:05', '17:15', 'Break']
}
for string, timeslot in timeslots.iteritems():