How to use the javaproperties.loads function in javaproperties

To help you get started, we’ve selected a few javaproperties examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_padded_equals():
    assert loads("foo = bar") == {"foo": "bar"}
github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_spacekey():
    assert loads(" =bar") == {"": "bar"}
github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_bang_comment():
    assert loads('!This is a comment.') == {}
github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_equals_space():
    assert loads("foo= bar") == {"foo": "bar"}
github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_simple():
    assert loads('foo=bar') == {"foo": "bar"}
github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_bang_comment_key_value():
    assert loads('!This is a comment.\nkey = value') == {"key": "value"}
github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_comment():
    assert loads('#This is a comment.') == {}
github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_comment_key_value():
    assert loads('#This is a comment.\nkey = value') == {"key": "value"}
github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_space_equals():
    assert loads("foo =bar") == {"foo": "bar"}
github jwodder / javaproperties / test / test_reading.py View on Github external
def test_loads_nokey():
    assert loads("=bar") == {"": "bar"}