summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2013-02-17 14:38:14 +0000
committerIsis Lovecruft <isis@torproject.org>2013-02-17 14:38:14 +0000
commit8d2fdc800de469420005f9c5deee4c342950ccc9 (patch)
tree6d084e32dbf9fa6d1c7608982736cc939343c85c
parentd4e936461f996dbffafcc34b761ec1024055c906 (diff)
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.
-rw-r--r--src/leap/mx/tests/__init__.py17
-rwxr-xr-xstart_mx.py4
2 files changed, 19 insertions, 2 deletions
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, <isis@leap.se> 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()