Example #1
0
    def test_delete_cols(self, col, no_cols, test_key, test_val):
        """Tests deletion action for columns"""

        basic_setup_test(self.grid, self.grid.actions.delete_cols, test_key,
                         test_val, col, no_cols=no_cols)

        # Test equality of code_array after undo and subsequent redo
        undo_test(self.grid)
Example #2
0
    def test_paste(self, tl_cell, data, test_key, test_val):
        """Tests paste into self.grid"""

        basic_setup_test(self.grid, self.grid.actions.paste, test_key,
                         test_val, tl_cell, data)

        # Test equality of code_array after undo and subsequent redo
        undo_test(self.grid)
Example #3
0
    def test_paste(self, tl_cell, data, test_key, test_val):
        """Tests paste into self.grid"""

        basic_setup_test(self.grid, self.grid.actions.paste, test_key,
                         test_val, tl_cell, data)

        # Test equality of code_array after undo and subsequent redo
        unredo_test(self.grid)
Example #4
0
    def test_insert_rows(self, row, no_rows, test_key, test_val):
        """Tests insertion action for rows"""

        basic_setup_test(self.grid, self.grid.actions.insert_rows, test_key,
                         test_val, row, no_rows=no_rows)

        # Test equality of code_array after undo and subsequent redo
        undo_test(self.grid)
Example #5
0
    def test_delete_tabs(self, tab, no_tabs, test_key, test_val):
        """Tests deletion action for tabs"""

        basic_setup_test(self.grid, self.grid.actions.delete_tabs, test_key,
                         test_val, tab, no_tabs=no_tabs)

        # Test equality of code_array after undo and subsequent redo
        undo_test(self.grid)
Example #6
0
    def test_delete_tabs(self, tab, no_tabs, test_key, test_val):
        """Tests deletion action for tabs"""

        basic_setup_test(self.grid,
                         self.grid.actions.delete_tabs,
                         test_key,
                         test_val,
                         tab,
                         no_tabs=no_tabs)
Example #7
0
    def test_insert_tabs(self, tab, no_tabs, test_key, test_val):
        """Tests insertion action for tabs"""

        basic_setup_test(self.grid,
                         self.grid.actions.insert_tabs,
                         test_key,
                         test_val,
                         tab,
                         no_tabs=no_tabs)
Example #8
0
    def test_delete_cols(self, col, no_cols, test_key, test_val):
        """Tests deletion action for columns"""

        basic_setup_test(self.grid,
                         self.grid.actions.delete_cols,
                         test_key,
                         test_val,
                         col,
                         no_cols=no_cols)
Example #9
0
    def test_insert_rows(self, row, no_rows, test_key, test_val):
        """Tests insertion action for rows"""

        basic_setup_test(self.grid,
                         self.grid.actions.insert_rows,
                         test_key,
                         test_val,
                         row,
                         no_rows=no_rows)
Example #10
0
    def test_delete_rows(self, row, no_rows, test_key, test_val):
        """Tests deletion action for rows"""

        basic_setup_test(self.grid,
                         self.grid.actions.delete_rows,
                         test_key,
                         test_val,
                         row,
                         no_rows=no_rows)
Example #11
0
    def test_insert_cols(self, col, no_cols, test_key, test_val):
        """Tests insertion action for columns"""

        basic_setup_test(self.grid,
                         self.grid.actions.insert_cols,
                         test_key,
                         test_val,
                         col,
                         no_cols=no_cols)
Example #12
0
    def test_delete_tabs(self, tab, no_tabs, test_key, test_val):
        """Tests deletion action for tabs"""

        basic_setup_test(self.grid,
                         self.grid.actions.delete_tabs,
                         test_key,
                         test_val,
                         tab,
                         no_tabs=no_tabs)

        # Test equality of code_array after undo and subsequent redo
        unredo_test(self.grid)
Example #13
0
    def test_insert_rows(self, row, no_rows, test_key, test_val):
        """Tests insertion action for rows"""

        basic_setup_test(self.grid,
                         self.grid.actions.insert_rows,
                         test_key,
                         test_val,
                         row,
                         no_rows=no_rows)

        # Test equality of code_array after undo and subsequent redo
        unredo_test(self.grid)
Example #14
0
    def test_delete_cols(self, col, no_cols, test_key, test_val):
        """Tests deletion action for columns"""

        basic_setup_test(self.grid,
                         self.grid.actions.delete_cols,
                         test_key,
                         test_val,
                         col,
                         no_cols=no_cols)

        # Test equality of code_array after undo and subsequent redo
        unredo_test(self.grid)
Example #15
0
    def test_paste(self, tl_cell, data, test_key, test_val):
        """Tests paste into self.grid"""

        basic_setup_test(self.grid, self.grid.actions.paste, test_key,
                         test_val, tl_cell, data)
Example #16
0
    def test_delete_tabs(self, tab, no_tabs, test_key, test_val):
        """Tests deletion action for tabs"""

        basic_setup_test(self.grid, self.grid.actions.delete_tabs, test_key,
                         test_val, tab, no_tabs=no_tabs)
Example #17
0
    def test_insert_tabs(self, tab, no_tabs, test_key, test_val):
        """Tests insertion action for tabs"""

        basic_setup_test(self.grid, self.grid.actions.insert_tabs, test_key,
                         test_val, tab, no_tabs=no_tabs)
Example #18
0
    def test_delete_cols(self, col, no_cols, test_key, test_val):
        """Tests deletion action for columns"""

        basic_setup_test(self.grid, self.grid.actions.delete_cols, test_key,
                         test_val, col, no_cols=no_cols)
Example #19
0
    def test_insert_cols(self, col, no_cols, test_key, test_val):
        """Tests insertion action for columns"""

        basic_setup_test(self.grid, self.grid.actions.insert_cols, test_key,
                         test_val, col, no_cols=no_cols)
Example #20
0
    def test_delete_rows(self, row, no_rows, test_key, test_val):
        """Tests deletion action for rows"""

        basic_setup_test(self.grid, self.grid.actions.delete_rows, test_key,
                         test_val, row, no_rows=no_rows)
Example #21
0
    def test_insert_rows(self, row, no_rows, test_key, test_val):
        """Tests insertion action for rows"""

        basic_setup_test(self.grid, self.grid.actions.insert_rows, test_key,
                         test_val, row, no_rows=no_rows)
    def test_paste(self, target, data, test_key, test_val):
        """Test paste of single values, lists and matrices"""

        basic_setup_test(self.grid, self.main_window.actions.paste, test_key, test_val, target, data)
Example #23
0
    def test_paste(self, tl_cell, data, test_key, test_val):
        """Tests paste into self.grid"""

        basic_setup_test(self.grid, self.grid.actions.paste, test_key,
                         test_val, tl_cell, data)