1 parent 529c112 commit 8cba0c1Copy full SHA for 8cba0c1
2 files changed
.travis.yml
@@ -7,6 +7,7 @@ install:
7
- "pip install python-dateutil"
8
- "pip install httmock"
9
- "pip install freezegun"
10
+ - "pip install nose"
11
- "pip install -r requirements.txt"
12
# command to run tests
13
script: nosetests --exe
snowplow_tracker/test/unit/test_payload.py
@@ -77,9 +77,9 @@ def test_get_transaction_id(self):
77
@freeze_time("1970-01-01 00:00:01")
78
def test_get_timestamp(self):
79
p = payload.Payload()
80
- self.assertTrue(p.context["dtm"] == 1000) # 1970-01-01 00:00:01 in ms
+ self.assertEquals(p.context["dtm"], 1000) # 1970-01-01 00:00:01 in ms
81
82
- def test_set_timestamp(self):
+ def test_set_timestamp_2(self):
83
84
p.set_timestamp(0)
85
self.assertEquals(p.context["dtm"], 0)
0 commit comments