# HG changeset patch # User Steve Losh # Date 1254684387 14400 # Node ID 6b629b71429913ceda5eb06574ac1582d46012af # Parent fc70018c2a0bb4b833d75723b96d09e82f6f78ea Add the nose testing skeleton. diff -r fc70018c2a0b -r 6b629b714299 review/tests/test_init.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/review/tests/test_init.py Sun Oct 04 15:26:27 2009 -0400 @@ -0,0 +1,21 @@ +from nose import * +from mercurial import commands, ui +import os + + +sandbox_path = os.path.join(os.path.realpath('.'), 'hgreview_test') + +def setup_sandbox(): + os.mkdir(sandbox_path) + os.chdir(sandbox_path) + + commands.init(ui.ui()) + +def teardown_sandbox(): + os.chdir(os.path.realpath(os.path.join(sandbox_path, os.pardir))) + os.rmdir(sandbox_path) + + +@with_setup(setup_sandbox, teardown_sandbox) +def test_default_init(): + pass \ No newline at end of file