(copy_env, bad)
| 205 | |
| 206 | @pytest.mark.parametrize("bad", ["x", "0", "-1", "1.5"]) |
| 207 | async def test_copy_n_invalid(copy_env, bad): |
| 208 | out = await COPY_COMMAND.run( |
| 209 | bad, _ctx(copy_env.tmp, [_msg("assistant", "a")], ui=NullUIHost()) |
| 210 | ) |
| 211 | assert out.message == ( |
| 212 | f"Usage: /copy [N] where N is 1 (latest), 2, 3, … Got: {bad}" |
| 213 | ) |
| 214 | |
| 215 | |
| 216 | async def test_copy_n_too_large_singular(copy_env): |
nothing calls this directly
no test coverage detected