Skip to content
Permalink
Browse files

rename and refactor unittest checking notebook

  • Loading branch information...
sdpython committed Jul 29, 2018
1 parent 2be40dd commit dc33f1593ed36af1b43169cce0ce136f4f3352c0

This file was deleted.

@@ -0,0 +1,50 @@
# -*- coding: utf-8 -*-
"""
@brief test log(time=33s)
"""

import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.ipythonhelper import test_notebook_execution_coverage
from pyquickhelper.pycode import add_missing_development_version, ExtTestCase

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


import src.csharpyml


class TestNotebook_csharp_for_ml_in_notebook(ExtTestCase):

def setUp(self):
add_missing_development_version(["pymyinstall", "pyensae", "jyquickhelper"],
__file__, hide=True)

def test_notebook_csharp_for_ml_in_notebook(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")

self.assertTrue(src.csharpyml is not None)
folder = os.path.join(os.path.dirname(__file__),
"..", "..", "_doc", "notebooks")
test_notebook_execution_coverage(__file__, "csharp_for_ml_in_notebook", folder,
this_module_name="csharpyml", fLOG=fLOG)


if __name__ == "__main__":
unittest.main()

0 comments on commit dc33f15

Please sign in to comment.
You can’t perform that action at this time.