lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 7386352cddacc114c388cc098581fd8fcbff76ef
parent 73ccb20703f86d968cbcf617eb0eafa3e89c6b92
Author: rsiddharth <rsd@gnu.org>
Date:   Sat, 13 Jul 2019 19:33:51 -0400

tests/test_lps_gen.py: Update TestTemplates.

* tests/test_lps_gen.py (TestTemplates.test_read): Suppress output to
  stderr.

Diffstat:
tests/test_lps_gen.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py @@ -113,8 +113,9 @@ class TestTemplates(object): assert type(t) is str assert len(t) > 0 - t = template_read('nonexistent') - assert t is None + with mock.patch('sys.stderr', new_callable=StringIO) as out: + t = template_read('nonexistent') + assert t is None class TestLPiCal(object):