|
|
@ -581,6 +581,7 @@ def test_os_check_fails(Pihole):
|
|
|
|
expected_stdout = 'Unsupported OS detected: UnsupportedOS'
|
|
|
|
expected_stdout = 'Unsupported OS detected: UnsupportedOS'
|
|
|
|
assert expected_stdout in detectOS.stdout
|
|
|
|
assert expected_stdout in detectOS.stdout
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_os_check_passes(Pihole):
|
|
|
|
def test_os_check_passes(Pihole):
|
|
|
|
''' Confirms OS meets the requirements '''
|
|
|
|
''' Confirms OS meets the requirements '''
|
|
|
|
Pihole.run('''
|
|
|
|
Pihole.run('''
|
|
|
@ -593,4 +594,4 @@ def test_os_check_passes(Pihole):
|
|
|
|
os_check
|
|
|
|
os_check
|
|
|
|
''')
|
|
|
|
''')
|
|
|
|
expected_stdout = 'Supported OS detected'
|
|
|
|
expected_stdout = 'Supported OS detected'
|
|
|
|
assert expected_stdout in detectOS.stdout
|
|
|
|
assert expected_stdout in detectOS.stdout
|
|
|
|