9dac8c84d2b1ef51cb594d389fd935bac6d4dd90,test/test_r_actions.py,TestActions,testRmarkdownWithInput,#TestActions#,54

Before Change


        wf = script.workflow()
        Base_Executor(wf).run()
        self.assertTrue(os.path.isfile("myreport.html"))
        file_target("myreport.html").remove()

//     def testRmarkdownWithNoOutput(self):
//         // another case is no output, so output goes to standard output
//         // this cannot be tested in travis because of limit on log file.

After Change


        wf = script.workflow()
        Base_Executor(wf).run()
        self.assertTrue(os.path.isfile("myreport.html"))
        if file_target("myreport.html").exists():
            file_target("myreport.html").unlink()

//     def testRmarkdownWithNoOutput(self):
//         // another case is no output, so output goes to standard output
//         // this cannot be tested in travis because of limit on log file.
//         script = SoS_Script(r"""
// [10]
// report: output="a.md"
// //// Some random figure
//
// Generated by matplotlib
//
//
// [100]
// // generate report
// Rmarkdown(input="a.md")
// """)
//         wf = script.workflow()
//         Base_Executor(wf).run()

    @unittest.skipIf(not shutil.which("Rscript"), "R not installed")
    def testRmarkdownWithActionOutput(self):
        script = SoS_Script(r"""
[10]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: vatlab/SoS
Commit Name: 9dac8c84d2b1ef51cb594d389fd935bac6d4dd90
Time: 2018-08-10
Author: ben.bog@gmail.com
File Name: test/test_r_actions.py
Class Name: TestActions
Method Name: testRmarkdownWithInput


Project Name: vatlab/SoS
Commit Name: 3a9e8d7989c8a4761afe8fc2109f45bcd5100bd9
Time: 2018-08-10
Author: ben.bog@gmail.com
File Name: test/test_actions.py
Class Name: TestActions
Method Name: testRegenerateReport


Project Name: vatlab/SoS
Commit Name: 9dac8c84d2b1ef51cb594d389fd935bac6d4dd90
Time: 2018-08-10
Author: ben.bog@gmail.com
File Name: test/test_r_actions.py
Class Name: TestActions
Method Name: testRmarkdown