plugin.video.viervijfzes/tests/__init__.py

24 lines
680 B
Python
Raw Normal View History

2020-03-19 16:45:31 +01:00
# -*- coding: utf-8 -*-
""" Tests """
2020-03-20 13:53:21 +01:00
from __future__ import absolute_import, division, unicode_literals
2020-03-19 16:45:31 +01:00
import logging
2020-07-09 10:16:45 +02:00
import os
import sys
2020-03-19 16:45:31 +01:00
2020-07-09 10:16:45 +02:00
import xbmcaddon
logging.basicConfig(level=logging.INFO)
# Make UTF-8 the default encoding in Python 2
if sys.version_info[0] == 2:
reload(sys) # pylint: disable=undefined-variable
sys.setdefaultencoding("utf-8") # pylint: disable=no-member
# Set credentials based on environment data
if os.environ.get('ADDON_USERNAME') and os.environ.get('ADDON_PASSWORD'):
ADDON = xbmcaddon.Addon()
ADDON.setSetting('username', os.environ.get('ADDON_USERNAME'))
ADDON.setSetting('password', os.environ.get('ADDON_PASSWORD'))