Mercurial > hg > configuration
view tests/example.py @ 6:dce954a3831f
more stubbing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 24 Mar 2012 23:14:22 -0700 |
parents | 92e1b2dd60c8 |
children | e00afe2c83bf |
line wrap: on
line source
from configuration import Configuration class ExampleConfiguration(Configuration): """example configuration instance""" options = { 'activeTests': {'type': list, 'required': "No tests specified; please specify --activeTests", 'help': 'Specify tests to run', 'flags': ['-a', '--activeTests']}, # command line flags 'title': {'help': 'talos run title'}, 'browser_path': {'required': True, 'flags': ['-e', '--executablePath'], 'help': 'path to firefox'} } if __name__ == '__main__': parser = ExampleConfiguration().parser()