From d8e23d5ef87a3ae4d6af38a28c095fc5a1bb1841 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 19 Jan 2010 09:04:09 -0500 Subject: [PATCH] Adjust command.serve.Serve doctest to clarify remaining test failures. Current test output $ python test.py libbe ... FAILED (failures=1, errors=3) All failures and errors due to unimplemented functionality Errors: * Darcs._vcs_isdir() not implemented (for Darcs <= 2.3.1) * Arch._vcs_path() not implemented * Arch._vcs_changed() not implemented Failures: * command.serve.Serve tests not implemented --- libbe/command/serve.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libbe/command/serve.py b/libbe/command/serve.py index 26be6c1..ec25486 100644 --- a/libbe/command/serve.py +++ b/libbe/command/serve.py @@ -332,13 +332,16 @@ class BERequestHandler (server.BaseHTTPRequestHandler): class Serve (libbe.command.Command): """Serve a Storage backend for the HTTP storage client + >>> raise NotImplementedError, "Serve tests not yet implemented" + >>> import sys >>> import libbe.bugdir + >>> import libbe.command.list >>> bd = libbe.bugdir.SimpleBugDir(memory=False) >>> io = libbe.command.StringInputOutput() >>> io.stdout = sys.stdout >>> ui = libbe.command.UserInterface(io=io) >>> ui.storage_callbacks.set_storage(bd.storage) - >>> cmd = List(ui=ui) + >>> cmd = libbe.command.list.List(ui=ui) >>> ret = ui.run(cmd) abc/a:om: Bug A -- 2.26.2