summaryrefslogtreecommitdiffstats
path: root/tests/test_lps_gen.py
Commit message (Collapse)AuthorAgeFilesLines
* Format via black.rsiddharth2020-07-091-510/+429
|
* tests: Update test_lps_gen.py.rsiddharth2019-07-201-1/+4
| | | | | * tests/test_lps_gen.py: Explicitly list all things that need to be imported from lps_gen.
* test_lps_gen.py: Remove reference to paths of templates.rsiddharth2019-07-181-16/+0
| | | | | | | | | | * tests/test_lps_gen.py (TestLPiCal.setup_class) (TestLPS.setup_class, TestLPSTBA.setup_class): Remove reference of path of 'schedule.jinja2' template. (TestLPSpeakers.setup_class): Remove reference of path of 'speakers.jinja2' template. (TestSpeakersAutoLinking.setup_class): Remove reference of path of 'speakers.jinja2' and 'schedule.jinja2' templates.
* tests/test_lps_gen.py: Update TestTemplates.rsiddharth2019-07-131-2/+3
| | | | | * tests/test_lps_gen.py (TestTemplates.test_read): Suppress output to stderr.
* lps_gen: Remove `lp_t` command line argument.rsiddharth2019-07-131-10/+6
| | | | | | | | | | | | | | * docs/install/index.rst: Update usage command output. * docs/schedule/index.rst: Update lps_gen command example. * docs/speakers/index.rst: Update lps_gen command example. * lps_gen.py (RenderHTML): Change argument template -> template_name. Read template from package. (main): Remove `lp_t` command line argument. * tests/test_lps_gen.py (TestLPS.test_RenderHTML) (TestLPS.test_RenderHTML_sessions_only) (TestLPS.test_RenderHTML_nonexistent_template) (TestLPSTBA.setup, TestLPSpeakers.test_RenderHTML): Update RenderHTML call; pass template name instead of template path.
* lps_gen.py: Update template_read.rsiddharth2019-07-131-3/+3
| | | | | | * lps_gen.py (template_read): Add template file extension. * tests/test_lps_gen.py (TestTemplates.test_read): Don't specify template file extension.
* lps_gen.py: Update template_read.rsiddharth2019-07-131-0/+3
| | | | | | | * lps_gen.py (template_read): Add exception handling for non-existent templates. * tests/test_lps_gen.py (TestTemplates.test_read): Add non-existent template test.
* lps_gen.py: Add template_read.rsiddharth2019-07-131-0/+14
| | | | | * lps_gen.py (template_read): New function. * tests/test_lps_gen.py (TestTemplates): New test class.
* tests: Update test_lps_gen.py.rsiddharth2019-07-131-12/+12
| | | | | | * tests/test_lps_gen.py (TestLPiCal.setup_class, TestLPS.setup_class) (TestLPSTBA.setup_class, TestLPSSpeakers.setup_class) (TestSpeakersAutoLinking): Update template path.
* Update LPiCal.to_ical.rsiddharth2019-05-261-1/+4
| | | | | * lps_gen.py (LPiCal.to_ical): Use format for formatted string. * tests/test_lps_gen.py (TestLPiCal.test_to_ical): Update test.
* lps_gen.py: Update LPiCal.rsiddharth2019-05-261-0/+11
| | | | | | * lps_gen.py (LPiCal.__init__): Use format function for formatted string. * tests/test_lps_gen.py (TestLPiCal.test_init): New test.
* test_lps_gen.py: Change dict iteration.rsiddharth2018-09-091-5/+5
| | | | | | | | | DICT.iteritems() -> DICT.items(). * tests/test_lps_gen.py (TestLPiCal.test_get_timeslot) (TestLPiCal.test_get_month_day) (TestLPiCal.test_add_event): Update methods.
* test_lps_gen.py: Change dictionary key checking.rsiddharth2018-09-091-6/+6
| | | | | | | | | | | | DICT.has_key(KEY) -> 'KEY' in DICT. * tests/test_lps_gen.py (TestLPSpeakers.test_LPSpeakersMarkdown_keynotespeakers_imgurl) (TestLPSpeakers.test_LPSpeakersMarkdown_keynotespeakers_imgalt) (TestLPSpeakers.test_LPSpeakersMarkdown_keynotespeakers_bio) (TestLPSpeakers.test_LPSpeakersMarkdown_speakers_imgurl) (TestLPSpeakers.test_LPSpeakersMarkdown_speakers_imgalt) (TestLPSpeakers.test_LPSpeakersMarkdown_speakers_bio): Update methods.
* tests/test_lps_gen.py: Remove 'pprint' import.rsiddharth2018-09-091-1/+0
|
* test_lps_gen.py: Remove unicode string wrappings.rsiddharth2018-09-091-10/+10
| | | | * tests/test_lps_gen.py (TestJSONUtils.setup_class): Update method.
* test_lps_gen.py: Import StringIO from io.rsiddharth2018-09-091-1/+1
|
* test_lps_gen.py: print -> print()rsiddharth2018-09-091-5/+5
| | | | | | | * tests/test_lps_gen.py (TestLPiCal.test_gen_ical) (TestLPiCal.test_gen_ical_sessions_only) (TestLPS.test_RenderHTML) (TestLPS.test_RenderHTML_sessions_only): Update methods.
* tests/test_lps_gen.py: Change license to Public Domain.rsiddharth2018-08-191-15/+3
|
* tests: Update to use 2019.rsiddharth2018-08-191-9/+9
| | | | | | | | | * tests/test_lps_gen.py (TestLPiCal.setup_class) (TestLPiCal.setup, TestLPiCal.test_mk_datetime) (TestLPiCal.test_gen_ical_sessions_only) (TestLPiCal.test_to_ical) (TestLPS.setup_class) (TestSpeakersAutoLinking.setup_class): Update tests.
* lps_gen.py: Update LPiCal timeslot regex slurping.rsiddharth2018-03-221-1/+9
| | | | | | | | | | | | | | | | | | 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.
* tests: Add TestLPS.test_LPSMarkdown_desc.rsiddharth2017-10-251-0/+28
| | | | | * tests/test_lps_gen.py (TestLPS.test_LPSMarkdown_desc): New test.
* tests: Add TestLPS.test_LPSMarkdown_video.rsiddharth2017-10-251-0/+24
| | | | * tests/test_lps_gen.py (TestLPS.test_LPSMarkdown_video): New test.
* tests: Update TestSpeakersAutoLinking.setup_class.rsiddharth2017-10-251-1/+1
| | | | | * tests/test_lps_gen.py (TestSpeakersAutoLinking.setup_class): Update method.
* tests: Update TestLPSTBA.setup_class.rsiddharth2017-10-251-1/+1
| | | | * tests/test_lps_gen.py (TestLPSTBA.setup_class): Update method.
* tests: Update TestLPSpeakers.test_RenderHTML.rsiddharth2017-10-251-1/+1
| | | | | * tests/test_lps_gen.py (TestLPSpeakers.test_RenderHTML): Add TODO.
* tests: Update TestLPS.test_RenderHTML_sessions_only.rsiddharth2017-10-251-1/+1
| | | | | * tests/test_lps_gen.py (TestLPS.test_RenderHTML_sessions_only): Add TODO.
* tests: Update TestLP.test_RenderHTML.rsiddharth2017-10-251-1/+1
| | | | * tests/test_lps_gen.py (TestLP.test_RenderHTML): Add TODO.
* tests: Update TestLPS.rsiddharth2017-05-291-3/+3
| | | | | | | * tests/files/lp-sch.md: Update file. * tests/test_lps_gen.py (setup_class) (test_LPSMarkdown_timeslot) (test_LPSMarkdown_session): Update methods.
* lps_gen.py: Update LPiCal.rsiddharth2017-05-291-3/+9
| | | | | | * lps_gen.py (LPiCal.add_event): Update method. New argument `t_name`. (gen_ical): Update method. * tests/test_lps_gen.py (TestLPiCal.test_add_event): Update method.
* update copyright.rsiddharth2016-05-111-1/+1
|
* Add `DescTBA` feature for LP Schedule.rsiddharth2016-05-111-0/+25
| | | | | | | From now on `DescTBA` can be given if the description for a session is not decided yet; `DescTBA` will be filtered out of the generated HTML. Addresses issue #4.
* Add test for `RoomTBA`.rsiddharth2016-05-111-0/+17
| | | | Addresses issue #4.
* Add `SpeakerTBA` feature for LP Schedule.rsiddharth2016-05-111-0/+73
| | | | | | | | From now on `SpeakerTBA` can be given if the speaker for a session is not decided yet; `SpeakerTBA` will be filtered out of the generated HTML. Addresses issue #4.
* Update LPiCal class.rsiddharth2016-03-191-2/+21
| | | | | | | - Detects when timeslot is not given and ignores that timeslot. - Detects when month, day not given and ignores that day. Addresses issue #8.
* updated tests/test_lps_gen.pyrsiddharth2016-03-181-1/+1
|
* Initial version of LPiCal class done.rsiddharth2016-03-181-11/+159
| | | | Addresses issue #8.
* Add LPiCal classrsiddharth2016-03-151-0/+61
| | | | | | | | | Contains two methods at the moment: - get_timeslot - get_month_day Addresses issue #8.
* changed tests/files/lp-sch.mdrsiddharth2016-03-051-2/+2
| | | | | | In some places use inline links. Addresses issue #3.
* Fixed TestLPS.test_RenderHTML_sessions_onlyrsiddharth2016-03-051-1/+1
|
* Templates are now at /libreplanet-templates/rsiddharth2016-02-131-8/+8
|
* cosemetic changes to tests/test_lps_gen.pyrsiddharth2016-02-131-43/+46
|
* Autolinking of speakers in sessions page ready.rsiddharth2016-02-131-4/+209
| | | | | | | | | | | | | | | | If "John Hacker" is the speaker that has to be autolinked in the sessions MD file; the markup to autolink is [John Hacker](). [John Hacker]() -> <a href="speakers.html#hacker">John Hacker</a>, if id for "John Hacker" is available in the `speaker.ids` file[1]. [1]: The `speakers.ids` file is automatically written to the disk (in the current working directory) when the speakers' bio page is generated. List of speakers that are autolinked but don't have an id, are written to the `speakers.noid` file when the sessions page is generated. Addresses issue #7.
* Fixed docstring and comments in TestJSONUtils.rsiddharth2016-02-131-3/+3
|
* LPSpeakersMarkdown writes speakers.ids to disk.rsiddharth2016-02-131-3/+23
| | | | | | | | The `speaker.ids` file contains a mapping of the speakers and their corresponding ids. This file will later be used by LPSMarkdown and LPSRenderer to auto link speakers while generating the sessions page. Addresses issue #7
* Introduced JSON utils.rsiddharth2016-02-131-0/+79
| | | | json_read and json_write
* Added template (under tests) for LP speakers' pagersiddharth2016-02-071-0/+10
| | | | Address issue #1.
* tests: updated docstrings.rsiddharth2016-02-071-2/+2
|
* updated LPSpeakersRenederer class.rsiddharth2016-02-071-13/+13
| | | | | | | | | | 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: docstring update.rsiddharth2016-02-071-1/+1
|
* tests/test_lps_gen.py: keynote speaker test updt.rsiddharth2016-02-071-1/+1
| | | | `test_LPSpeakersMarkdown_keynotespeakers_imgalt` last photo is empty.