From 97a922a541dedd5c59f909d423c38a5acb25664f Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 7 Feb 2016 13:56:43 -0500 Subject: updated LPSpeakersRenederer class. Changed the way speaker' bio are parsed into the lpspeakers_dict dictionary. As a side effect, there is no need to put a placeholder (NO_IMAGE) when the image for a speaker is not available. Addresses issue #1. --- tests/test_lps_gen.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests/test_lps_gen.py') diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py index f9510dc..96695c4 100644 --- a/tests/test_lps_gen.py +++ b/tests/test_lps_gen.py @@ -298,14 +298,14 @@ class TestLPSpeakers(object): """ - keynote_speaker_bios = [['

Daniel Kahn Gillmor is a technologist with the ACLU\'s Speech, Privacy'], - ['

Edward Snowden is a former intelligence officer who served the CIA,'], - ['

Richard is a software developer and software freedom activist. In 1983', - '

Since the mid-1990s, Richard has spent most of his time in political',], + keynote_speaker_bios = [['Daniel Kahn Gillmor is a technologist with the ACLU\'s Speech, Privacy'], + ['Edward Snowden is a former intelligence officer who served the CIA,'], + ['Richard is a software developer and software freedom activist. In 1983', + 'Since the mid-1990s, Richard has spent most of his time in political',], [], - ['

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam', - '

Ut turpis felis, pulvinar a semper sed, adipiscing id']] + ['Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam', + 'Ut turpis felis, pulvinar a semper sed, adipiscing id']] i = 0 @@ -409,16 +409,16 @@ class TestLPSpeakers(object): """Testing LPSpeakersMarkdown speakers' bio. """ - speaker_bios = [['

Emmanuel is a Division III student at Hampshire College, studying how'], + speaker_bios = [['Emmanuel is a Division III student at Hampshire College, studying how'], [], - ['

Marianne Corvellec has been a Free Software activist with April'], - ['

Richard Fontana is a lawyer at Red Hat. He leads support for Red Hat\'s'], + ['Marianne Corvellec has been a Free Software activist with April'], + ['Richard Fontana is a lawyer at Red Hat. He leads support for Red Hat\'s'], [], - ['

Bassam is a 3D animator/filmmaker whose 2006 short, Elephants Dream,'], - ['

Jonathan has been involved with the Free Software Movement for ten'], - ['

M. C. is the founder of Transparency Toolkit, a free software project'], + ['Bassam is a 3D animator/filmmaker whose 2006 short, Elephants Dream,'], + ['Jonathan has been involved with the Free Software Movement for ten'], + ['M. C. is the founder of Transparency Toolkit, a free software project'], [], - ['

Stefano Zacchiroli is Associate Professor of Computer Science at']] + ['Stefano Zacchiroli is Associate Professor of Computer Science at']] i = 0 for kspeaker in self.lpspeakers_dict['speakers']: -- cgit v1.2.3