view autobot/projects/__init__.py @ 38:f586e28ff3d7

now have a testable setup; doesnt do much yet
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 08 Jan 2011 16:48:32 -0800
parents 206467b6f61f
children e66165f2f31b
line wrap: on
line source

"""
projects that need some testing:

* logparser [IN FLIGHT]
* mozmill   [IN FLIGHT]
* devicemanager  [TODO]
* profilemanager [TODO]
* firebug        [TODO]
* jetpack thing  [TODO]
* autobot        [TODO]
"""

import os

from logparser import TestLogParserFactory
from mozmill import TestMozmillFactory
# TODO: import these automagically:
# requires non-zipped eggs
here = os.path.dirname(os.path.abspath(__file__))
packages = [os.path.join(here, path)
            for path in os.listdir(here)
            if os.path.isdir(os.path.join(here, path))]
packages = [package for package in packages
            if os.path.exists(os.path.join(package, '__init__.py'))]

# available factories
factories = {'logparser': TestLogParserFactory,
             'mozmill':   TestMozmillFactory }