summaryrefslogtreecommitdiff
path: root/test/test_config.py
Commit message (Collapse)AuthorAgeFilesLines
* Normalized test and build setupMarcel Hellkamp2018-10-251-9/+2
|
* fix deprecation warnings (assertEquals); make tests environ and jinja2 ↵Dime Mikhalchenko2018-07-191-2/+2
| | | | runnable standalone
* Track ConfigDict overlays with weak references to avoid memory leaks.Marcel Hellkamp2016-10-191-0/+7
|
* test coverageMarcel Hellkamp2016-09-251-2/+26
|
* Rewrite 'overlay' feature for ConfigDict.Marcel Hellkamp2016-09-251-48/+52
|
* Improved ConfigDict.load_config() documentation and functionality.Marcel Hellkamp2016-08-271-2/+42
| | | | | | | | | | | | | | The issue #784 criticized that values under the [DEFAULT] section are injected into all other sections while the documentation states that these values are only injected into the root namespace. The actual behavior is correct and the documentation was wrong. See configparser.ConfigParser() documentation for the exact behavior. There is no easy way to change this behavior. This patch: - fixes #784: ConfigDict.load_config() and 'DEFAULT' sections. - Improves documentation. - Enables extended value string interpolation for Python 3. - Enables empty (none) values. - Enables customisation by passing configparser.ConfigParser() parameters to ConfigDict.load_config() - Introduces the special [ROOT] section as an replacement for [DEFAULT].
* Added (experimental, non public) support for config with fallback.Marcel Hellkamp2015-11-281-0/+49
|
* Tests cleanup so tehy run in PyCharm.Marcel Hellkamp2015-11-281-6/+0
|
* Modified to support dict squashingCal Leeming2015-09-111-3/+7
|
* Fixes https://github.com/bottlepy/bottle/issues/772Cal Leeming2015-09-111-0/+8
|
* Fix #720 : Allow unicode keys in ConfigDict.Michael Wayne Goodman2015-07-241-0/+11
|
* Merged test_config and test_configdictMarcel Hellkamp2014-09-181-0/+19
|
* Fixed deprecation warnings for assertEquals in test cases.Marcel Hellkamp2014-05-051-4/+4
|
* Delete duplicated assertEqualtimguo2013-07-171-1/+0
|
* Merged the new ConfDict and the old ConfigDict into one class.Marcel Hellkamp2013-07-161-6/+14
| | | | | Added depr() warnings to all old ConfigDict APIs. Added ConfigDict.load_dict()
* Config documentation and some more public ConfDict APIs.Marcel Hellkamp2013-07-031-2/+2
|
* Added Bottle::conf (as a replacement for Bottle::config)Marcel Hellkamp2013-06-261-0/+38
Features: - Full dict() API. It is, in fact, a subclass of dict. - Very fast reads (no overhead compared to a native dicts). - app.conf.update('dottet.name.space', ...) for the lazy. - New app.hook('config') that watches for configuration updates. Planned Features: - Help texts, constraints and other metadata for keys. - on_update callbacks for all keys or specific namespaces. - app.conf.load_ini(...) and friends.