Skip to content

Commit

Permalink
Add additional tests for spaces in keys and corresponding references
Browse files Browse the repository at this point in the history
  • Loading branch information
akaIDIOT committed Jan 28, 2019
1 parent 5f040de commit d273852
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ def test_reference_syntax():
'key4': '$ {reference}',
'key5': '#{reference}',
'key_with_space ': 'value',
'key with spaces': 'value2',
'key6': '${key_with_space }',
'key7': '${key with spaces}',
'key8': '${key_with_space}',
})

assert config.reference is NotConfigured
Expand All @@ -21,6 +24,10 @@ def test_reference_syntax():
assert '$' in config.key4
assert '#' in config.key5
assert config.key6 == 'value'
assert config.key7 == 'value2'

with pytest.raises(ConfiguredReferenceError):
assert not config.key8


def test_value_types():
Expand Down

0 comments on commit d273852

Please sign in to comment.