view autobot/projects/__init__.py @ 34:206467b6f61f

* cleanup a bit in projects and start featuring autodiscovery * add some authz crap to the config file
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 08 Jan 2011 10:21:54 -0800
parents 5b08b98897c6
children f586e28ff3d7
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() }