mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-19 05:40:13 +00:00
Address review comments
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
7fa8cdd03e
commit
4d31d5ee11
4 changed files with 10 additions and 10 deletions
|
@ -17,13 +17,13 @@ def test_key_val_replacement_works(host):
|
|||
|
||||
|
||||
def test_key_val_removal_works(host):
|
||||
''' Confirms addOrEditKeyValPair provides the expected output '''
|
||||
''' Confirms removeKey provides the expected output '''
|
||||
host.run('''
|
||||
source /opt/pihole/utils.sh
|
||||
addOrEditKeyValPair "./testoutput" "KEY_ONE" "value1"
|
||||
addOrEditKeyValPair "./testoutput" "KEY_TWO" "value2"
|
||||
addOrEditKeyValPair "./testoutput" "KEY_THREE" "value3"
|
||||
removeKey "KEY_TWO" "./testoutput"
|
||||
removeKey "./testoutput" "KEY_TWO"
|
||||
''')
|
||||
output = host.run('''
|
||||
cat ./testoutput
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue