incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/2] git commit: More fixes to dates in user inactivity test
Date Wed, 02 Jan 2013 16:43:02 GMT
Updated Branches:
  refs/heads/master ae1c6ca1c -> 1679bca17


More fixes to dates in user inactivity test


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/1679bca1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/1679bca1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/1679bca1

Branch: refs/heads/master
Commit: 1679bca17d64a1f461017072b8e7e2f09a23fde0
Parents: 5b21ce0
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Wed Jan 2 16:42:54 2013 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Wed Jan 2 16:42:54 2013 +0000

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_auth.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/1679bca1/Allura/allura/tests/functional/test_auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_auth.py b/Allura/allura/tests/functional/test_auth.py
index 35b2f24..0f51df2 100644
--- a/Allura/allura/tests/functional/test_auth.py
+++ b/Allura/allura/tests/functional/test_auth.py
@@ -591,8 +591,8 @@ class TestPreferences(TestController):
         assert len(user.inactiveperiod) == 1 and period1dict in user.get_inactive_periods()
 
         #Add second inactivity period
-        startdate2 = datetime(2012, 12, 24)
-        enddate2 = datetime(2012, 12, 28)
+        startdate2 =  now + timedelta(days=24)
+        enddate2 = now + timedelta(days=28)
         r = self.app.post('/auth/prefs/add_inactive_period',
              params=dict(
                  startdate=startdate2.strftime('%d/%m/%Y'),


Mime
View raw message