コード例 #1
0
 def run_main(self, fmt):
     """
     Run the 'main' method to convert the input file to the given
     format and check that the expected output file exists.
     """
     main(self.infile, format=fmt)
     nt.assert_true(self.outfile_exists(fmt))
コード例 #2
0
 def run_main(self, fmt):
     """
     Run the 'main' method to convert the input file to the given
     format and check that the expected output file exists.
     """
     main(self.infile, format=fmt)
     nt.assert_true(self.outfile_exists(fmt))
コード例 #3
0
ファイル: test_simple.py プロジェクト: nborwankar/nbconvert
def test_main_html():
    """
    Test main entry point
    """
    main(fname, format="html")
    nt.assert_true(os.path.exists("tests/test.html"))
コード例 #4
0
ファイル: test_simple.py プロジェクト: nborwankar/nbconvert
def test_main():
    """
    Test main entry point
    """
    main(fname)
    nt.assert_true(os.path.exists(out_fname))
コード例 #5
0
ファイル: test_simple.py プロジェクト: cmcc/nbviewer
def test_main_html():
    """
    Test main entry point
    """
    main(fname, format='html')
    nt.assert_true(os.path.exists('tests/test.html'))
コード例 #6
0
ファイル: test_simple.py プロジェクト: cmcc/nbviewer
def test_main():
    """
    Test main entry point
    """
    main(fname)
    nt.assert_true(os.path.exists(out_fname))