Permalink
Browse files

extend unit test coverage

  • Loading branch information...
sdpython committed Jan 2, 2018
1 parent 896bf95 commit 62ebc424704a0f33be37e1a69d8e3a93e2478b38
Showing with 59 additions and 1 deletion.
  1. +57 −0 _unittests/ut_ipythonhelper/test_canvas.py
  2. +2 −1 src/code_beatrix/automation/notebook_test_helper.py
@@ -0,0 +1,57 @@
#-*- coding: utf-8 -*-
"""
@brief test log(time=3s)
"""
import sys
import os
import unittest
try:
import src
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..")))
if path not in sys.path:
sys.path.append(path)
import src
try:
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import pyquickhelper as skip_
from pyquickhelper.loghelper import fLOG
from src.code_beatrix.ipythonhelper import display_canvas_point
class TestCanvas(unittest.TestCase):
def test_canvas(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
points = display_canvas_point('gid')
self.assertEqual(points, [])
if __name__ == "__main__":
unittest.main()
@@ -147,4 +147,5 @@ def valid_cell(cell):
if len(notebooks) == 0:
raise ValueError("Empty list of notebooks.")
return execute_notebook_list(
folder, notebooks, fLOG=fLOG, valid=valid_cell, additional_path=addpaths, kernel_name=kernel_name)
folder, notebooks, fLOG=fLOG, valid=valid_cell, additional_path=addpaths,
kernel_name=kernel_name, clean_function=clean_function)

0 comments on commit 62ebc42

Please sign in to comment.