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
2 files changed
tree: be5b67e817445581010636bd1a872ef2485556b3
  1. testing_support/
  2. .gitignore
  3. codereview.settings
  4. README.md
  5. setup.py
README.md

Testing Support

Utilities to support writing unittests for infra-related tools.

Auto stub

Dead simple mocking framework.

Git

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.