def test_plotly_project(self): support.open_project(self, '@examples:time-gender') response = support.run_command('run') self.assertFalse(response.failed) support.run_command('close')
def test_plotly_project(self): """Should properly write a project that has been run""" support.open_project(self, '@examples:time-gender') response = support.run_command('run') self.assertFalse(response.failed)
def test_run_bokeh(self): """ """ support.open_project(self, '@examples:bokeh') r = environ.Response() commander.execute('run', '', r) r.thread.join() self.assertFalse(r.failed)
def test_run_step_example(self): """ """ support.open_project(self, '@examples:hello_cauldron') r = environ.Response() commander.execute('run', '.', r) r.thread.join() self.assertFalse(r.failed)
def test_run_example(self): """ """ support.open_project(self, '@examples:hello_text') r = environ.Response() commander.execute('run', '', r) r.thread.join() self.assertFalse(r.failed) support.run_command('close')
def test_run_in_parts(self): """ """ support.open_project(self, '@examples:hello_cauldron') r = environ.Response() commander.execute('run', 'S01-create-data.py', r) r.thread.join() self.assertFalse(r.failed) r = environ.Response() commander.execute('run', 'S02-plot-data.py', r) r.thread.join() self.assertFalse(r.failed)
def test_open_example(self): """ """ r = support.open_project(self, '@examples:hello_cauldron') self.assertFalse(r.failed, 'should have opened successfully') self.assertIn('project', r.data, 'missing project data from response') self.assertEqual(len(r.messages), 1, 'success response message?')
def test_open_new_project(self): """ """ r = support.create_project(self, 'test_project') r = support.open_project(self, r.data['source_directory']) self.assertFalse(r.failed, 'should have opened successfully') self.assertIn('project', r.data, 'missing project data from response') self.assertEqual(len(r.messages), 1, 'success response message?')
def test_open_example(self): """ """ r = support.open_project(self, '@examples:hello_cauldron') self.assertFalse(r.failed, 'should have opened successfully') self.assertIn( 'project', r.data, 'missing project data from response' ) self.assertEqual( len(r.messages), 1, 'success response message?' )
def test_open_new_project(self): """ """ r = support.create_project(self, 'test_project') r = support.open_project(self, r.data['source_directory']) self.assertFalse(r.failed, 'should have opened successfully') self.assertIn( 'project', r.data, 'missing project data from response' ) self.assertEqual( len(r.messages), 1, 'success response message?' )