pyspread.model.test package¶
Submodules¶
pyspread.model.test.test_model module¶
test_model¶
Unit tests for model.py
- class pyspread.model.test.test_model.Settings[source]¶
Bases:
object
Simulates settings class
- timeout = 1000¶
- class pyspread.model.test.test_model.TestCellAttributes[source]¶
Bases:
object
Unit tests for CellAttributes
- class pyspread.model.test.test_model.TestCodeArray[source]¶
Bases:
object
Unit tests for CodeArray
- data_eval_cell = [((0, 0, 0), '2 + 4', 6), ((1, 0, 0), 'S[0, 0, 0]', None), ((43, 2, 1), 'X, Y, Z', (43, 2, 1))]¶
- param_test_setitem = [({(2, 3, 2): '42'}, {(1, 3, 2): '42'}, {(1, 3, 2): '42', (2, 3, 2): '42'})]¶
- class pyspread.model.test.test_model.TestDataArray[source]¶
Bases:
object
Unit tests for DataArray
- param_adjust_cell_attributes = [(0, 5, 0, (4, 3, 0), (9, 3, 0)), (34, 5, 0, (4, 3, 0), (4, 3, 0)), (0, 0, 0, (4, 3, 0), (4, 3, 0)), (1, 5, 1, (4, 3, 0), (4, 8, 0)), (1, 5, 1, (4, 3, 1), (4, 8, 1)), (0, -1, 2, (4, 3, 1), None), (0, -1, 2, (4, 3, 2), (4, 3, 1))]¶
- param_adjust_rowcol = [({(0, 0): 3.0}, 0, 2, 0, 0, (0, 0), 3.0), ({(0, 0): 3.0}, 0, 2, 0, 0, (2, 0), 3.0), ({(0, 0): 3.0}, 0, 1, 1, 0, (1, 0), 3.0), ({(0, 0): 3.0}, 0, 1, 1, 0, (0, 1), 0.0)]¶
- param_get_last_filled_cell = [({(0, 0, 0): '2'}, 0, (0, 0)), ({(2, 0, 2): '2'}, 0, (0, 0)), ({(2, 0, 2): '2'}, None, (2, 0)), ({(2, 0, 2): '2'}, 2, (2, 0)), ({(32, 30, 0): '432'}, 0, (32, 30))]¶
- param_test_delete = [({(2, 3, 4): '42'}, 1, 1, 0, None, {(1, 3, 4): '42'}), ({(0, 0, 0): '1'}, 0, 1, 0, 0, {(0, 0, 0): None}), ({(0, 0, 1): '1'}, 0, 1, 2, None, {(0, 0, 0): '1'}), ({(3, 3, 2): '3'}, 0, 2, 2, None, {(3, 3, 0): '3'}), ({(4, 2, 1): '3'}, 2, 1, 1, 1, {(4, 2, 1): None}), ({(10, 0, 0): '1'}, 0, 10, 0, 0, {(0, 0, 0): '1'})]¶
- param_test_insert = [({(2, 3, 0): '42'}, 1, 1, 0, None, {(2, 3, 0): None, (3, 3, 0): '42'}), ({(0, 0, 0): '0', (0, 0, 2): '2'}, 1, 1, 2, None, {(0, 0, 3): '2', (0, 0, 4): None})]¶
- test_adjust_cell_attributes(inspoint, noins, axis, src, target)[source]¶
Unit test for _adjust_cell_attributes