Skip to content

Commit

Permalink
Unittest for dot in config key names.
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Sep 2, 2016
1 parent 81a26b0 commit ed90e45
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -113,6 +113,6 @@ You can find the canonical syntax reference on [PyYAML](http://pyyaml.org/wiki/P


### Change Log

- [0.5.6-dev0] Unittest for dot in config key names.
- [0.5.1] Encoding option for files
- [0.4.0] Adding DeferredConfigManager
2 changes: 1 addition & 1 deletion pymlconf/__init__.py
Expand Up @@ -4,7 +4,7 @@
from pymlconf.errors import ConfigurationError, ConfigKeyError, ConfigurationMergeError
from pymlconf.proxy import DeferredConfigManager

__version__ = '0.5.6'
__version__ = '0.5.6-dev0'

__all__ = ['ConfigManager',
'Mergable',
Expand Down
21 changes: 21 additions & 0 deletions pymlconf/tests/test_dot_in_key.py
@@ -0,0 +1,21 @@

import unittest

from pymlconf import ConfigManager


class DotTestCase(unittest.TestCase):
def setUp(self):
self.sample_config = '''
server.token.salt: 1345
'''

def test_dot_in_config_key(self):
m = ConfigManager(self.sample_config)
self.assertEqual(m['server.token.salt'], 1345)


if __name__ == '__main__':
unittest.main()

0 comments on commit ed90e45

Please sign in to comment.