# HG changeset patch # User Marcin Kuzminski # Date 2013-05-12 12:32:38 # Node ID b4fc29a051ae50d1925bef9670359270972ded30 # Parent 832907f41ee66760787295644a76123d6a164dbd small tests improvements diff --git a/rhodecode/tests/functional/test_admin_gists.py b/rhodecode/tests/functional/test_admin_gists.py --- a/rhodecode/tests/functional/test_admin_gists.py +++ b/rhodecode/tests/functional/test_admin_gists.py @@ -33,18 +33,18 @@ class TestGistsController(TestController # Test response... response.mustcontain('There are no gists yet') - _create_gist('gist1') - _create_gist('gist2', lifetime=1400) - _create_gist('gist3', description='gist3-desc') - _create_gist('gist4', gist_type='private') + g1 = _create_gist('gist1').gist_access_id + g2 = _create_gist('gist2', lifetime=1400).gist_access_id + g3 = _create_gist('gist3', description='gist3-desc').gist_access_id + g4 = _create_gist('gist4', gist_type='private').gist_access_id response = self.app.get(url('gists')) # Test response... - response.mustcontain('gist:1') - response.mustcontain('gist:2') + response.mustcontain('gist:%s' % g1) + response.mustcontain('gist:%s' % g2) response.mustcontain('Expires: in 23 hours') # we don't care about the end - response.mustcontain('gist:3') + response.mustcontain('gist:%s' % g3) response.mustcontain('gist3-desc') - response.mustcontain(no=['gist:4']) + response.mustcontain(no=['gist:%s' % g4]) def test_index_private_gists(self): self.log_user() diff --git a/rhodecode/tests/functional/test_files.py b/rhodecode/tests/functional/test_files.py --- a/rhodecode/tests/functional/test_files.py +++ b/rhodecode/tests/functional/test_files.py @@ -459,7 +459,7 @@ removed extra unicode conversion in diff repo_name=HG_REPO, revision='tip', f_path='/'), params={ - '' + 'content': '' }, status=302)