Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 91ac0c8b46c037e39872d1982dc93cec2708bf24
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon Nov 5 20:20:17 2012 +0100
Fix the Flask unit-tests now that the session is a global attribute of fedocal
---------------------------------------------------------------
fedocal/tests/test_flask.py | 2 +-
fedocal/tests/test_flask_api.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fedocal/tests/test_flask.py b/fedocal/tests/test_flask.py
index d63625a..571e35b 100644
--- a/fedocal/tests/test_flask.py
+++ b/fedocal/tests/test_flask.py
@@ -64,7 +64,7 @@ class Flasktests(Modeltests):
super(Flasktests, self).setUp()
fedocal.APP.config['TESTING'] = True
- fedocal.CONFIG.set('fedocal', 'db_url',
+ fedocal.SESSION = fedocallib.create_session(
'sqlite:///%s' % DB_PATH)
self.app = fedocal.APP.test_client()
diff --git a/fedocal/tests/test_flask_api.py b/fedocal/tests/test_flask_api.py
index 26129da..c4cd00b 100644
--- a/fedocal/tests/test_flask_api.py
+++ b/fedocal/tests/test_flask_api.py
@@ -64,7 +64,7 @@ class FlaskApitests(Modeltests):
super(FlaskApitests, self).setUp()
fedocal.APP.config['TESTING'] = True
- fedocal.CONFIG.set('fedocal', 'db_url',
+ fedocal.SESSION = fedocallib.create_session(
'sqlite:///%s' % DB_PATH)
self.app = fedocal.APP.test_client()