diff rhodecode/tests/functional/test_admin_gists.py @ 4116:ffd45b185016 rhodecode-2.2.5-gpl

Imported some of the GPLv3'd changes from RhodeCode v2.2.5. This imports changes between changesets 21af6c4eab3d and 6177597791c2 in RhodeCode's original repository, including only changes to Python files and HTML. RhodeCode clearly licensed its changes to these files under GPLv3 in their /LICENSE file, which states the following: The Python code and integrated HTML are licensed under the GPLv3 license. (See: https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE or http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE for an online copy of that LICENSE file) Conservancy reviewed these changes and confirmed that they can be licensed as a whole to the Kallithea project under GPLv3-only. While some of the contents committed herein are clearly licensed GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the statement above from RhodeCode indicates that they intend GPLv3-only as their license, per GPLv3ยง14 and other relevant sections of GPLv3.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:03:13 -0400
parents 4b0d283ecede
children 7e5f8c12a3fc
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_admin_gists.py	Wed Jul 02 19:03:10 2014 -0400
+++ b/rhodecode/tests/functional/test_admin_gists.py	Wed Jul 02 19:03:13 2014 -0400
@@ -39,12 +39,12 @@
         g4 = _create_gist('gist4', gist_type='private').gist_access_id
         response = self.app.get(url('gists'))
         # Test response...
-        response.mustcontain('gist:%s' % g1)
-        response.mustcontain('gist:%s' % g2)
+        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:%s' % g3)
+        response.mustcontain('gist: %s' % g3)
         response.mustcontain('gist3-desc')
-        response.mustcontain(no=['gist:%s' % g4])
+        response.mustcontain(no=['gist: %s' % g4])
 
     def test_index_private_gists(self):
         self.log_user()
@@ -53,7 +53,7 @@
         # Test response...
 
         #and privates
-        response.mustcontain('gist:%s' % gist.gist_access_id)
+        response.mustcontain('gist: %s' % gist.gist_access_id)
 
     def test_create_missing_description(self):
         self.log_user()
@@ -73,7 +73,7 @@
         response = response.follow()
         response.mustcontain('added file: foo')
         response.mustcontain('gist test')
-        response.mustcontain('<div class="ui-btn green badge">Public gist</div>')
+        response.mustcontain('<div class="btn btn-mini btn-success disabled">Public Gist</div>')
 
     def test_create_with_path_with_dirs(self):
         self.log_user()
@@ -105,7 +105,7 @@
         response = response.follow()
         response.mustcontain('added file: private-foo<')
         response.mustcontain('private gist test')
-        response.mustcontain('<div class="ui-btn yellow badge">Private gist</div>')
+        response.mustcontain('<div class="btn btn-mini btn-warning disabled">Private Gist</div>')
 
     def test_create_with_description(self):
         self.log_user()
@@ -120,7 +120,7 @@
         response.mustcontain('added file: foo-desc')
         response.mustcontain('gist test')
         response.mustcontain('gist-desc')
-        response.mustcontain('<div class="ui-btn green badge">Public gist</div>')
+        response.mustcontain('<div class="btn btn-mini btn-success disabled">Public Gist</div>')
 
     def test_new(self):
         self.log_user()
@@ -153,7 +153,7 @@
         response.mustcontain('added file: gist-show-me<')
         response.mustcontain('test_admin (RhodeCode Admin) - created')
         response.mustcontain('gist-desc')
-        response.mustcontain('<div class="ui-btn green badge">Public gist</div>')
+        response.mustcontain('<div class="btn btn-mini btn-success disabled">Public Gist</div>')
 
     def test_show_as_raw(self):
         gist = _create_gist('gist-show-me', content='GIST CONTENT')
@@ -169,5 +169,4 @@
         self.assertEqual(response.body, 'GIST BODY')
 
     def test_edit(self):
-        self.skipTest('not implemented')
         response = self.app.get(url('edit_gist', gist_id=1))