platypush/tests/context.py

19 lines
358 B
Python
Raw Normal View History

2017-12-22 02:11:56 +01:00
import os
import sys
from platypush.config import Config
2017-12-22 02:11:56 +01:00
testdir = os.path.dirname(__file__)
sys.path.insert(0, os.path.abspath(os.path.join(testdir, '..')))
config_file = os.path.join(testdir, 'etc', 'config.yaml')
Config.init(config_file)
class TimeoutException(RuntimeError):
2017-12-22 02:11:56 +01:00
def __init__(self, msg):
self.msg = msg
# vim:sw=4:ts=4:et: