|
8 | 8 | from fastplotlib.graphics._features import VertexColors, FeatureEvent |
9 | 9 | from .utils import ( |
10 | 10 | generate_slice_indices, |
11 | | - assert_pending_uploads, |
12 | 11 | generate_color_inputs, |
13 | 12 | generate_positions_spiral_data, |
14 | 13 | ) |
@@ -61,11 +60,8 @@ def test_int(test_graphic): |
61 | 60 | colors = make_colors_buffer() |
62 | 61 |
|
63 | 62 | # TODO: placeholder until I make a testing figure where we draw frames only on call |
64 | | - colors.buffer._gfx_pending_uploads.clear() |
65 | | - |
66 | 63 | colors[3] = "r" |
67 | 64 | npt.assert_almost_equal(colors[3], [1.0, 0.0, 0.0, 1.0]) |
68 | | - assert colors.buffer._gfx_pending_uploads[-1] == (3, 1) |
69 | 65 |
|
70 | 66 | if test_graphic: |
71 | 67 | # test event |
@@ -206,9 +202,6 @@ def test_slice(color_input, slice_method: dict, test_graphic: bool): |
206 | 202 | else: |
207 | 203 | colors = make_colors_buffer() |
208 | 204 |
|
209 | | - # TODO: placeholder until I make a testing figure where we draw frames only on call |
210 | | - colors.buffer._gfx_pending_uploads.clear() |
211 | | - |
212 | 205 | s = slice_method["slice"] |
213 | 206 | indices = slice_method["indices"] |
214 | 207 | offset = slice_method["offset"] |
@@ -238,9 +231,6 @@ def test_slice(color_input, slice_method: dict, test_graphic: bool): |
238 | 231 | else: |
239 | 232 | npt.assert_almost_equal(EVENT_RETURN_VALUE.info["user_value"], color_input) |
240 | 233 |
|
241 | | - # make sure correct offset and size marked for pending upload |
242 | | - assert_pending_uploads(colors.buffer, offset, size) |
243 | | - |
244 | 234 | # check that others are not touched |
245 | 235 | others_truth = np.repeat([[1.0, 1.0, 1.0, 1.0]], repeats=len(others), axis=0) |
246 | 236 | npt.assert_almost_equal(colors[others], others_truth) |
|
0 commit comments