Fix timestamps in tests as Travis builds run on GMT time
When launched manually, tests should be launched with the environment variable TZ=GMT. Maybe this could be useful to add that explicitly somewhere in the README or in the Makefile.
This commit is contained in:
parent
e9732140e5
commit
f4feec4727
5 changed files with 10 additions and 10 deletions
|
|
@ -9,7 +9,7 @@ def test_history_event_creation():
|
|||
he = HistoryEvent(123, "DecisionTaskStarted", scheduled_event_id=2)
|
||||
he.event_id.should.equal(123)
|
||||
he.event_type.should.equal("DecisionTaskStarted")
|
||||
he.event_timestamp.should.equal(1420110000.0)
|
||||
he.event_timestamp.should.equal(1420113600.0)
|
||||
|
||||
@freeze_time("2015-01-01 12:00:00")
|
||||
def test_history_event_to_dict_representation():
|
||||
|
|
@ -17,7 +17,7 @@ def test_history_event_to_dict_representation():
|
|||
he.to_dict().should.equal({
|
||||
"eventId": 123,
|
||||
"eventType": "DecisionTaskStarted",
|
||||
"eventTimestamp": 1420110000.0,
|
||||
"eventTimestamp": 1420113600.0,
|
||||
"decisionTaskStartedEventAttributes": {
|
||||
"scheduledEventId": 2
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue