Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 0f63267fe3a973302825f1612b87984f4f000c90
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon Dec 3 17:46:02 2012 +0100
Fix the test_get_html_monthly_cal so it does not use hard-coded values
---------------------------------------------------------------
fedocal/tests/test_fedocallib.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/fedocal/tests/test_fedocallib.py b/fedocal/tests/test_fedocallib.py
index c4bfb21..6037c9b 100644
--- a/fedocal/tests/test_fedocallib.py
+++ b/fedocal/tests/test_fedocallib.py
@@ -591,10 +591,11 @@ class Fedocallibtests(Modeltests):
# Handle the change of month
expected_output = expected_output.replace(
'class="month"><a class="button"
href="#"><</a> '\
- 'November 2012 <a class="button"
href="#">></a></th>',
+ '%s <a class="button"
href="#">></a></th>',
'class="month"><a class="button"
href="#"><</a> %s %s '\
'<a class="button"
href="#">></a></th>' % (
- today.strftime('%B'), today.year))
+ today.strftime('%B %Y'), today.strftime('%B'),
+ today.year))
# Handle the current_week css class
expected_output = expected_output.split('\n')
cnt = 0