Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/d/a/datawinners-HEAD/datawinners/test_utils.py   datawinners(Download)
    def test_float_values_should_use_same_style(self):
        ws = Mock(spec=Worksheet)
        row = [12.3, 13.45]
        utils.write_row_to_worksheet(ws, row, 1)
        ws.write.assert_any_call(1, 0, 12.3, style=utils.EXCEL_CELL_FLOAT_STYLE)
    def test_float_values_that_can_be_represented_as_integer_should_use_same_style(self):
        ws = Mock(spec=Worksheet)
        row = [12.0, 13.0]
        utils.write_row_to_worksheet(ws, row, 1)
        ws.write.assert_any_call(1, 0, 12, style=utils.EXCEL_CELL_INTEGER_STYLE)
        type(mock_column).width = mock_width
 
        utils.write_row_to_worksheet(ws, row, 1)
 
        mock_width.assert_called_with(width)
        type(mock_column).width = mock_width_property
 
        utils.write_row_to_worksheet(ws, row, 1)
 
        mock_width_property.assert_called_with(width)
        type(mock_column).width = mock_width_property
 
        utils.write_row_to_worksheet(ws, row, 1)
 
        mock_width_property.assert_called_with(width)