Fix and enable test_util_test
This commit is contained in:
parent
28567ab58e
commit
6e38945ab1
@ -26,4 +26,4 @@ install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir -p /home/travis/.gramps/grampsdb/
|
- mkdir -p /home/travis/.gramps/grampsdb/
|
||||||
- DJANGO_SETTINGS_MODULE=gramps.webapp.settings nosetests3 --exclude=TestcaseGenerator --exclude=exportvcard_test --exclude=vcard --exclude=merge_ref_test --exclude=test_util_test --exclude=test2_exec_CLI --exclude=test3_files_in_import_dir --exclude=test_manual_run gramps
|
- DJANGO_SETTINGS_MODULE=gramps.webapp.settings nosetests3 --exclude=TestcaseGenerator --exclude=exportvcard_test --exclude=vcard --exclude=merge_ref_test --exclude=test2_exec_CLI --exclude=test3_files_in_import_dir --exclude=test_manual_run gramps
|
||||||
|
@ -53,10 +53,10 @@ usage_note="""
|
|||||||
# **************************************************************
|
# **************************************************************
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from test import test_util as tu
|
from gramps.test import test_util as tu
|
||||||
##here = tu.absdir()
|
##here = tu.absdir()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("Cannot import 'test_util'from package 'test'" + usage_note)
|
print("Cannot import 'test_util' from package 'test'" + usage_note)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
@ -202,9 +202,9 @@ class Test4(U.TestCase):
|
|||||||
logging.error(emsg)
|
logging.error(emsg)
|
||||||
ll = tl.logfile_getlines()
|
ll = tl.logfile_getlines()
|
||||||
nl = len(ll)
|
nl = len(ll)
|
||||||
self.assertEquals(nl,2,
|
self.assertEquals(nl,3,
|
||||||
tu.msg(nl,2, "pass %d: expected line count" % i))
|
tu.msg(nl,3, "pass %d: expected line count" % i))
|
||||||
del tl
|
#del tl
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user