17e0a612303e

Wrap the review command in the tests.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 04 Oct 2009 16:00:43 -0400
parents 1fcd33358670
children 4d7eca6c1832
branches/tags (none)
files review/tests/test_init.py

Changes

--- 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