Suppress output in importgeneweb test
This commit is contained in:
parent
44b7983331
commit
c1c2c1557c
@ -22,6 +22,7 @@
|
||||
Unit test of the GeneWebParser
|
||||
"""
|
||||
import unittest
|
||||
import logging
|
||||
from ..importgeneweb import GeneWebParser
|
||||
from ....gen.lib.date import Date
|
||||
|
||||
@ -35,6 +36,8 @@ class ParseDateTest(unittest.TestCase):
|
||||
|
||||
def test_invalid_date_stays_verbatim_text(self):
|
||||
text = "29/2/1875"
|
||||
logging.disable(logging.WARNING)
|
||||
d = self.parse(text)
|
||||
logging.disable(logging.NOTSET)
|
||||
self.assertEqual(d.get_modifier(), Date.MOD_TEXTONLY)
|
||||
self.assertEqual(d.get_text(), text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user