Skip to content

Commit

Permalink
Merge branch 'release/0.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscberrocal committed Sep 25, 2015
2 parents f40d2e3 + 3008cc4 commit a92a34c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.rst
Expand Up @@ -2,6 +2,9 @@
pyjavaprops
-------------

.. image:: https://travis-ci.org/luiscberrocal/pyjavaprops.svg?branch=master
:target: https://travis-ci.org/luiscberrocal/pyjavaprops

Library to read Java style properties files. I don't particularly like properties files but working with them in Java
is very easy. I recently had to support reading properties files using Python.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -3,7 +3,7 @@
with open("README.rst") as src:
readme = src.read()

version = '0.1.3'
version = '0.1.4'

setup(
name='pyjavaprops',
Expand Down
10 changes: 9 additions & 1 deletion tests/test_javaproperties.py
Expand Up @@ -24,11 +24,19 @@ def test_variable(self):
def test_variable_dollar(self):
self.assertEqual('Value01/path/to/myapp', self.java_properties['Key24'])

def test_key_with_spaces_eq(self):
#Key17\ With\ Spaces=Value17
self.assertEqual('Value17', self.java_properties['Key17 With Spaces'])

def test_key_with_spaces(self):
#Key16\ With\ Spaces:Value16
self.assertEqual('Value16', self.java_properties['Key16 With Spaces'])

def test_load(self):
filename = os.path.join(TEST_DATA_FOLDER, 'simple.properties')
simple_java_properties = JavaProperties()
simple_java_properties.load(open(filename))
print(simple_java_properties)
self.assertEqual('1.5, 1.6.1, 1.7, 1.8,', simple_java_properties['supported.java.versions'])


if __name__ == '__main__':
Expand Down

0 comments on commit a92a34c

Please sign in to comment.