commit | 01a4a301660003ca7b9a16d3841ecd4c090ea526 | [log] [tgz] |
---|---|---|
author | Sergiy Byelozyorov <sergiyb@google.com> | Wed Sep 03 15:37:43 2014 |
committer | Sergiy Byelozyorov <sergiyb@google.com> | Wed Sep 03 15:37:43 2014 |
tree | be5b67e817445581010636bd1a872ef2485556b3 | |
parent | 119f437580a5d02409b3a445abe33955a4ae2bc6 [diff] |
Added timezone info for the start date for the fake commits. Mock commits are generated starting from 1970-01-01 00:00 in the local timezone, which in GMT represent to time before the epoch. When datetime objects are converted to Unix timestamp (seconds since epoch), they generate very large numbers that do not fit into an int and are converted to long instead. That broke a test, which validated that the timestamp is not an int. Furthermore, Git hashes for the commit differed because actual timestamps were different in each timezone. R=agable@chromium.org, iannucci@chromium.org Review URL: https://codereview.chromium.org/533213002
Utilities to support writing unittests for infra-related tools.
Dead simple mocking framework.
A simple ascii-art-schema-based unittest library. Sets up a real on-disk git repo according to a specified ascii-art representation in a class variable.
See testing_support.git.*
docstrings for more info.