Address review comments

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2022-04-04 22:02:26 +01:00
parent 7fa8cdd03e
commit 4d31d5ee11
No known key found for this signature in database
GPG key ID: 872950F3ECF2B173
4 changed files with 10 additions and 10 deletions

View file

@ -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