MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_copy_n_invalid

Function test_copy_n_invalid

tests/test_copy_command.py:207–213  ·  view source on GitHub ↗
(copy_env, bad)

Source from the content-addressed store, hash-verified

205
206@pytest.mark.parametrize("bad", ["x", "0", "-1", "1.5"])
207async 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
216async def test_copy_n_too_large_singular(copy_env):

Callers

nothing calls this directly

Calls 4

NullUIHostClass · 0.90
_ctxFunction · 0.70
_msgFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected