Ejemplo n.º 1
0
    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')
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
    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)
Ejemplo n.º 4
0
    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)
Ejemplo n.º 5
0
    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)
Ejemplo n.º 6
0
    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)
Ejemplo n.º 7
0
    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')
Ejemplo n.º 8
0
    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)
Ejemplo n.º 9
0
    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)
Ejemplo n.º 10
0
    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?')
Ejemplo n.º 11
0
    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?')
Ejemplo n.º 12
0
    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?'
        )
Ejemplo n.º 13
0
    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?'
        )
Ejemplo n.º 14
0
 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)