Mercurial > kallithea
comparison rhodecode/tests/__init__.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 | 5293d4bbb1ea |
children | 7e5f8c12a3fc |
comparison
equal
deleted
inserted
replaced
4115:8b7294a804a0 | 4116:ffd45b185016 |
---|---|
1 """Pylons application test package | 1 # -*- coding: utf-8 -*- |
2 # This program is free software: you can redistribute it and/or modify | |
3 # it under the terms of the GNU General Public License as published by | |
4 # the Free Software Foundation, either version 3 of the License, or | |
5 # (at your option) any later version. | |
6 # | |
7 # This program is distributed in the hope that it will be useful, | |
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
10 # GNU General Public License for more details. | |
11 # | |
12 # You should have received a copy of the GNU General Public License | |
13 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
14 | |
15 """ | |
16 Pylons application test package | |
2 | 17 |
3 This package assumes the Pylons environment is already loaded, such as | 18 This package assumes the Pylons environment is already loaded, such as |
4 when this script is imported from the `nosetests --with-pylons=test.ini` | 19 when this script is imported from the `nosetests --with-pylons=test.ini` |
5 command. | 20 command. |
6 | 21 |
167 class TestController(BaseTestCase): | 182 class TestController(BaseTestCase): |
168 | 183 |
169 def __init__(self, *args, **kwargs): | 184 def __init__(self, *args, **kwargs): |
170 BaseTestCase.__init__(self, *args, **kwargs) | 185 BaseTestCase.__init__(self, *args, **kwargs) |
171 self.app = TestApp(self.wsgiapp) | 186 self.app = TestApp(self.wsgiapp) |
187 self.maxDiff = None | |
172 self.index_location = config['app_conf']['index_dir'] | 188 self.index_location = config['app_conf']['index_dir'] |
173 | 189 |
174 def log_user(self, username=TEST_USER_ADMIN_LOGIN, | 190 def log_user(self, username=TEST_USER_ADMIN_LOGIN, |
175 password=TEST_USER_ADMIN_PASS): | 191 password=TEST_USER_ADMIN_PASS): |
176 self._logged_username = username | 192 self._logged_username = username |
192 def _get_logged_user(self): | 208 def _get_logged_user(self): |
193 return User.get_by_username(self._logged_username) | 209 return User.get_by_username(self._logged_username) |
194 | 210 |
195 def checkSessionFlash(self, response, msg): | 211 def checkSessionFlash(self, response, msg): |
196 self.assertTrue('flash' in response.session, | 212 self.assertTrue('flash' in response.session, |
197 msg='Response session:%r have no flash' | 213 msg='Response session have no flash key' % response.session) |
198 % response.session) | |
199 if not msg in response.session['flash'][0][1]: | 214 if not msg in response.session['flash'][0][1]: |
200 msg = u'msg `%s` not found in session flash: got `%s` instead' % ( | 215 msg = u'msg `%s` not found in session flash: got `%s` instead' % ( |
201 msg, response.session['flash'][0][1]) | 216 msg, response.session['flash'][0][1]) |
202 self.fail(safe_str(msg)) | 217 self.fail(safe_str(msg)) |