# HG changeset patch # User Steve Losh # Date 1254686443 14400 # Node ID 17e0a612303e3ecb2e2bb1ffc15a730eb00e9df1 # Parent 1fcd33358670a869676afb64b6c0be8e2911fee3 Wrap the review command in the tests. diff -r 1fcd33358670 -r 17e0a612303e review/tests/test_init.py --- a/review/tests/test_init.py Sun Oct 04 15:44:24 2009 -0400 +++ b/review/tests/test_init.py Sun Oct 04 16:00:43 2009 -0400 @@ -3,6 +3,12 @@ import os, shutil import sample_data +from .. import extension_ui +_ui = ui.ui() +def review(init=False, local_path='', remote_path=''): + return extension_ui.review(_ui, get_sandbox_repo(), + init=init, local_path=local_path, remote_path=remote_path) + sandbox_path = os.path.join(os.path.realpath('.'), 'hgreview_test') @@ -31,4 +37,6 @@ @with_setup(setup_sandbox, teardown_sandbox) def test_default_init(): - sandbox = get_sandbox_repo() \ No newline at end of file + sandbox = get_sandbox_repo() + + review(init=True) \ No newline at end of file