# 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
#
# test_tracking_events.py
#
# Copyright (C) 2017 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# Unit tests for functions related to tracking events:
#     `kano_profile.tracker.tracking_events`
#





@pytest.mark.parametrize('event_name, event_type, event_data', [
    ('low-battery', 'battery', '{"status": "low-charge"}'),
    ('auto-poweroff', 'battery', '{"status": "automatic-poweroff"}')
    ])
def test_generate_low_battery_event(event_name, event_type, event_data):

# 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

#
# test_tracking_events.py
#
# Copyright (C) 2017 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# Unit tests for functions related to tracking events:
#     `kano_profile.tracker.tracking_events`
#





@pytest.mark.parametrize('event_name, event_type, event_data', [
    ('low-battery', 'battery', '{"status": "low-charge"}'),
    ('auto-poweroff', 'battery', '{"status": "automatic-poweroff"}')
    ])
def test_generate_low_battery_event(event_name, event_type, event_data):

    if os.path.exists(tracker_events_file):