Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit f143df3db3a698ae5f339919e25acc898c0584bc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon Nov 5 18:46:03 2012 +0100
Move the definition of TODAY to the __init__ of the tests
---------------------------------------------------------------
fedocal/tests/__init__.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/fedocal/tests/__init__.py b/fedocal/tests/__init__.py
index 5bbd57d..fd12e4a 100644
--- a/fedocal/tests/__init__.py
+++ b/fedocal/tests/__init__.py
@@ -43,11 +43,13 @@ from sqlalchemy.exc import IntegrityError
sys.path.insert(0, os.path.join(os.path.dirname(
os.path.abspath(__file__)), '..'))
-from fedocallib import model
+from fedocallib import model, get_start_week
DB_PATH = '%s/test.db' %(os.path.dirname(
os.path.abspath(__file__)))
+TODAY = get_start_week(date.today().year, date.today().month,
+ date.today().day) + timedelta(days=2)
class Modeltests(unittest.TestCase):
""" Model tests. """