Mercurial > hg > configuration
comparison tests/example.py @ 102:c530f6265deb
allow extensible configuration; also start using deepcopy heavily since otherwise you have artefacts
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Tue, 01 May 2012 10:33:37 -0700 |
| parents | 490687e70723 |
| children |
comparison
equal
deleted
inserted
replaced
| 101:f4590492cb4c | 102:c530f6265deb |
|---|---|
| 15 'help': 'path to firefox'}, | 15 'help': 'path to firefox'}, |
| 16 'develop': {'help': "useful for running tests on a developer machine. Creates a local webserver and doesn't upload to the graph servers.", | 16 'develop': {'help': "useful for running tests on a developer machine. Creates a local webserver and doesn't upload to the graph servers.", |
| 17 'type': bool}, | 17 'type': bool}, |
| 18 'test_timeout': {'help': "Time to wait for the browser to output to the log file", | 18 'test_timeout': {'help': "Time to wait for the browser to output to the log file", |
| 19 'default': 1200}, | 19 'default': 1200}, |
| 20 'preferences': {'type': dict, | 20 'preferences': {'help': 'profile preferences', |
| 21 'default': {'browser.bookmarks.max_backups': 0, | |
| 22 'browser.cache.disk.smart_size.enabled': False}, | |
| 21 'flags': ['-p', '--pref']} | 23 'flags': ['-p', '--pref']} |
| 22 } | 24 } |
| 25 extend = set(['preferences']) | |
| 23 | 26 |
| 24 if __name__ == '__main__': | 27 if __name__ == '__main__': |
| 25 from pprint import pprint | 28 from pprint import pprint |
| 26 options, args = ExampleConfiguration().parse_args() | 29 options, args = ExampleConfiguration().parse_args() |
| 27 pprint(options.__dict__) | 30 pprint(options.__dict__) |
