Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 5b3b98acc0949ea0d41c2bc6c9c11438060916b5
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat Mar 2 11:20:42 2013 +0100
Fix the test of test_formatweek by fixing the date itself
---------------------------------------------------------------
tests/test_fedora_calendar.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_fedora_calendar.py b/tests/test_fedora_calendar.py
index 45cf349..79bcf94 100644
--- a/tests/test_fedora_calendar.py
+++ b/tests/test_fedora_calendar.py
@@ -40,7 +40,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(
os.path.abspath(__file__)), '..'))
from fedocallib.fedora_calendar import FedocalCalendar
-from tests import Modeltests
+from tests import Modeltests, TODAY
class FedocalCalendartests(Modeltests):
@@ -61,7 +61,7 @@ class FedocalCalendartests(Modeltests):
def test_formatweek(self):
""" Test the formatweek function. """
- today = date.today()
+ today = TODAY
cal = FedocalCalendar(today.year, today.month, today.day)
self.assertEqual(cal.formatweek([(1, 1), (2, 2)]),
'<tr><td class="tue">1</td><td
class="wed">2</td></tr>')