From 8d2fdc800de469420005f9c5deee4c342950ccc9 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Sun, 17 Feb 2013 14:38:14 +0000 Subject: Add an __init__.py to the leap/mx/tests module with a boilerplated tests.run() function so that the options parser doesn't choke on it. --- src/leap/mx/tests/__init__.py | 17 +++++++++++++++++ start_mx.py | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 src/leap/mx/tests/__init__.py diff --git a/src/leap/mx/tests/__init__.py b/src/leap/mx/tests/__init__.py new file mode 100644 index 0000000..0416769 --- /dev/null +++ b/src/leap/mx/tests/__init__.py @@ -0,0 +1,17 @@ +#-*- encoding: utf-8 -*- +""" +leap/mx/tests/__init__.py +------------------------- +Module intialization file for leap.mx.tests, a module containing unittesting +code, using twisted.trial, for testing leap_mx. + +@authors: Isis Agora Lovecruft, 0x2cdb8b35 +@license: AGPLv3, see included LICENSE file +@copyright: © 2013 Isis Lovecruft, see COPYLEFT file +""" + +__all__ = ['test_alias_resolver'] + +def run(): + """xxx fill me in""" + pass diff --git a/start_mx.py b/start_mx.py index 7837add..d45209c 100755 --- a/start_mx.py +++ b/start_mx.py @@ -138,8 +138,8 @@ Example Usage: failure.traceupLength = 7 failure.startDebugMode() - if options['test']: - from leap.mx import tests ## xxx this needs an __init__.py + if options['all-tests']: + from leap.mx import tests tests.run() else: mx_options.getUsage() -- cgit v1.2.3