From: W. Trevor King Date: Tue, 19 Jan 2010 14:04:09 +0000 (-0500) Subject: Adjust command.serve.Serve doctest to clarify remaining test failures. X-Git-Tag: 1.0.0~59^2~47^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d8e23d5ef87a3ae4d6af38a28c095fc5a1bb1841;p=be.git 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 --- 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