(self, r)
| 2311 | |
| 2312 | @skip_if_server_version_lt("8.7.0") |
| 2313 | def test_increx_byfloat(self, r): |
| 2314 | key = "increx:float" |
| 2315 | assert r.set(key, "1.5") |
| 2316 | result = r.increx(key, byfloat=0.25, lbound=0, ubound=2) |
| 2317 | assert [float(value) for value in result] == pytest.approx([1.75, 0.25]) |
| 2318 | assert float(r[key]) == pytest.approx(1.75) |
| 2319 | |
| 2320 | @skip_if_server_version_lt("8.7.0") |
| 2321 | def test_increx_saturating_bounds(self, r): |