# Path: kano_profile/paths.py
# TRACKER_UUIDS_PATH = os.path.join(kanoprofile_dir, 'tracker', 'uuids')
# PAUSED_SESSIONS_FILE = os.path.join(kanoprofile_dir, '.paused_sessions')
# 
# Path: kano_profile/tracker/tracker_token.py
# TOKEN = load_token()


import os
import json
import time
import pytest
import kano_profile.tracker.tracking_events as tracking_events
from kano_profile.paths import tracker_events_file
from kano_profile.tracker.tracker_token import TOKEN
    events = []

    with open(tracker_events_file, 'r') as events_f:
        events.append(json.loads(events_f.readline()))

    assert len(events) == 1

    event = events[0]

    expected_keys = [
        'name',
        'language',
        'type',
        'timezone_offset',
        'cpu_id',
        'os_version',
        'token',
        'time',
        'data'
    ]

    for key in expected_keys:
        assert key in event

    assert event['name'] == event_type
    # language: en_GB,
    assert event['type'] == 'data'
    # timezone_offset: 3600,
    # cpu_id: None,
    # os_version: None,

# Path: kano_profile/paths.py
# TRACKER_UUIDS_PATH = os.path.join(kanoprofile_dir, 'tracker', 'uuids')
# PAUSED_SESSIONS_FILE = os.path.join(kanoprofile_dir, '.paused_sessions')
# 
# Path: kano_profile/tracker/tracker_token.py
# TOKEN = load_token()


# Path: tests/profile/tracking/test_tracking_events.py
import os
import json
import time
import pytest
import kano_profile.tracker.tracking_events as tracking_events
from kano_profile.paths import tracker_events_file
from kano_profile.tracker.tracker_token import TOKEN

    events = []

    with open(tracker_events_file, 'r') as events_f:
        events.append(json.loads(events_f.readline()))

    assert len(events) == 1

    event = events[0]

    expected_keys = [
        'name',
        'language',
        'type',
        'timezone_offset',
        'cpu_id',
        'os_version',
        'token',
        'time',
        'data'
    ]

    for key in expected_keys:
        assert key in event

    assert event['name'] == event_type
    # language: en_GB,
    assert event['type'] == 'data'
    # timezone_offset: 3600,
    # cpu_id: None,
    # os_version: None,

    assert event['token'] == TOKEN