Skip to content

Commit 175b63d

Browse files
committed
Tracker initialization now takes place after the Subject is set up
1 parent 72e58c6 commit 175b63d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

snowplow_tracker/test/integration/test_integration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,14 @@ def test_integration_unstruct_event_base64(self):
137137

138138
def test_integration_standard_nv_pairs(self):
139139
s = subject.Subject()
140-
t = tracker.Tracker(consumer.Consumer("localhost"), s, "cf", app_id="angry-birds-android", context_vendor="com.example")
141140
s.set_platform("mob")
142141
s.set_user_id("user12345")
143142
s.set_screen_resolution(100, 200)
144143
s.set_color_depth(24)
145144
s.set_timezone("Europe London")
146145
s.set_lang("en")
146+
147+
t = tracker.Tracker(consumer.Consumer("localhost"), s, "cf", app_id="angry-birds-android", context_vendor="com.example")
147148
with HTTMock(pass_response_content):
148149
t.track_page_view("localhost", "local host", None, {'user': {'user_type': 'tester'}})
149150
expected_fields = {"tna": "cf", "evn": "com.snowplowanalytics", "res": "100x200",

0 commit comments

Comments
 (0)