mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Populate all required variables with a distro check.
This commit is contained in:
parent
a281d87315
commit
54e2c6181a
1 changed files with 2 additions and 0 deletions
|
@ -278,6 +278,7 @@ def test_update_package_cache_success_no_errors(Pihole):
|
||||||
''' confirms package cache was updated without any errors'''
|
''' confirms package cache was updated without any errors'''
|
||||||
updateCache = Pihole.run('''
|
updateCache = Pihole.run('''
|
||||||
source /opt/pihole/basic-install.sh
|
source /opt/pihole/basic-install.sh
|
||||||
|
distro_check
|
||||||
update_package_cache
|
update_package_cache
|
||||||
''')
|
''')
|
||||||
assert 'Updating local cache of available packages...' in updateCache.stdout
|
assert 'Updating local cache of available packages...' in updateCache.stdout
|
||||||
|
@ -288,6 +289,7 @@ def test_update_package_cache_failure_no_errors(Pihole):
|
||||||
mock_command('apt-get', {'*':('', '1')}, Pihole)
|
mock_command('apt-get', {'*':('', '1')}, Pihole)
|
||||||
updateCache = Pihole.run('''
|
updateCache = Pihole.run('''
|
||||||
source /opt/pihole/basic-install.sh
|
source /opt/pihole/basic-install.sh
|
||||||
|
distro_check
|
||||||
update_package_cache
|
update_package_cache
|
||||||
''')
|
''')
|
||||||
assert 'Updating local cache of available packages...' in updateCache.stdout
|
assert 'Updating local cache of available packages...' in updateCache.stdout
|
||||||
|
|
Loading…
Reference in a new issue