Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 8cba0c1

Browse files
committed
Renamed duplicate test and added "pip install nose" to .travis.yml
1 parent 529c112 commit 8cba0c1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ install:
77
- "pip install python-dateutil"
88
- "pip install httmock"
99
- "pip install freezegun"
10+
- "pip install nose"
1011
- "pip install -r requirements.txt"
1112
# command to run tests
1213
script: nosetests --exe

snowplow_tracker/test/unit/test_payload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def test_get_transaction_id(self):
7777
@freeze_time("1970-01-01 00:00:01")
7878
def test_get_timestamp(self):
7979
p = payload.Payload()
80-
self.assertTrue(p.context["dtm"] == 1000) # 1970-01-01 00:00:01 in ms
80+
self.assertEquals(p.context["dtm"], 1000) # 1970-01-01 00:00:01 in ms
8181

82-
def test_set_timestamp(self):
82+
def test_set_timestamp_2(self):
8383
p = payload.Payload()
8484
p.set_timestamp(0)
8585
self.assertEquals(p.context["dtm"], 0)

0 commit comments

Comments
 (0)