changeset 6340:70d3a838a9f4

tests: remove unused code from conftest.py conftest.py does not contain an import of pylons (only of pylons.test) so usage of e.g. pylons.config can never work, so it cannot be used. Since the tests run fine regardless, we can get rid of this code.
author Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
date Sun, 20 Nov 2016 21:28:04 +0100
parents 8845ece50d51
children 6a9f82696750
files kallithea/tests/conftest.py
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/conftest.py	Thu Oct 20 17:54:26 2016 +0200
+++ b/kallithea/tests/conftest.py	Sun Nov 20 21:28:04 2016 +0100
@@ -23,15 +23,6 @@
     pylons.test.pylonsapp = loadapp('config:kallithea/tests/test.ini', relative_to=path)
     logging.disable(logging.NOTSET)
 
-    # Setup the config and app_globals, only works if we can get
-    # to the config object
-    conf = getattr(pylons.test.pylonsapp, 'config')
-    if conf:
-        pylons.config._push_object(conf)
-
-        if 'pylons.app_globals' in conf:
-            pylons.app_globals._push_object(conf['pylons.app_globals'])
-
     # Initialize a translator for tests that utilize i18n
     translator = _get_translator(pylons.config.get('lang'))
     pylons.translator._push_object(translator)