Exemplo n.º 1
0
    def test4_non_existent_rscript(self):

        runner = RScriptRunner(self.test_data_file_fail)
        runner.rcommand_base = 'Rscript test2_tis_not_a_real_script.r'
        runner.run_command_on_file()
        #self.rscript_file = os.path.join(RDIR, 'test2.r')
        msg(runner.get_err_msgs())

        assert runner.err_found, True

        assert(runner.get_err_msgs(as_html=True), """Sorry!  There was an error running the script. (5)<br />Error: Fatal error: cannot open<br />file 'test2_tis_not_a_real_script.r': No such file or directory<br /><br />R script path: /Users/rmp553/Documents/iqss-git/PhthisisRavens/R""")