/
test_canvas.py
57 lines (46 loc) · 1.18 KB
/
test_canvas.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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()