incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [05/13] git commit: [#6212] Fixed datetime.now to datetime.utcnow
Date Tue, 14 May 2013 18:03:34 GMT
[#6212] Fixed datetime.now to datetime.utcnow

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


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

Branch: refs/heads/cj/5571
Commit: fdadc228381f5558c24f4e293829fea50ee19677
Parents: b20122d
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Mon May 13 22:22:00 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Mon May 13 22:22:00 2013 +0000

----------------------------------------------------------------------
 ForgeUserStats/forgeuserstats/tests/test_model.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fdadc228/ForgeUserStats/forgeuserstats/tests/test_model.py
----------------------------------------------------------------------
diff --git a/ForgeUserStats/forgeuserstats/tests/test_model.py b/ForgeUserStats/forgeuserstats/tests/test_model.py
index dd77b32..cc67e27 100644
--- a/ForgeUserStats/forgeuserstats/tests/test_model.py
+++ b/ForgeUserStats/forgeuserstats/tests/test_model.py
@@ -418,7 +418,7 @@ class TestUserStats(unittest.TestCase):
         newcommit.tree.get_blob_by_path.return_value.__iter__.return_value = ['one']
         newcommit.repo.commit().tree.get_blob_by_path.return_value = mock.MagicMock()
         newcommit.repo.commit().tree.get_blob_by_path.return_value.__iter__.return_value
= ['two']
-        commit_datetime = datetime.now()
+        commit_datetime = datetime.utcnow()
         project = mock.Mock(
                 trove_topic=[],
                 trove_language=[],


Mime
View raw message