Mercurial > kallithea
diff rhodecode/tests/test_hg_operations.py @ 910:811fa5d45de8 beta
Rewrite simehg for enabling cloning with raw url for anonymous access + some optimizations for making less queries when authenticating users.
added debug to test hg operations
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 03 Jan 2011 00:47:16 +0100 |
parents | 1f0e37c0854d |
children | f9016563f987 |
line wrap: on
line diff
--- a/rhodecode/tests/test_hg_operations.py Mon Jan 03 00:30:05 2011 +0100 +++ b/rhodecode/tests/test_hg_operations.py Mon Jan 03 00:47:16 2011 +0100 @@ -23,7 +23,7 @@ USER = 'test_admin' PASS = 'test12' HOST = '127.0.0.1:5000' - +DEBUG = True log = logging.getLogger(__name__) @@ -38,16 +38,18 @@ command = cmd + ' ' + ' '.join(args) log.debug('Executing %s' % command) - print command + if DEBUG: + print command p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE, cwd=self.cwd) stdout, stderr = p.communicate() - print stdout, stderr + if DEBUG: + print stdout, stderr return stdout, stderr -#=============================================================================== +#============================================================================== # TESTS -#=============================================================================== +#============================================================================== def test_clone(): cwd = path = jn(TESTS_TMP_PATH, HG_REPO) @@ -215,9 +217,10 @@ if __name__ == '__main__': test_clone() - test_clone_wrong_credentials() + + #test_clone_wrong_credentials() ##test_clone_anonymous_ok() - + test_pull() #test_push_new_file() #test_push_wrong_path() #test_push_wrong_credentials()