Replace apt-get with apt in test suite

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2021-11-03 22:12:53 +01:00
parent aed343a2c9
commit 59ca3fcf38
No known key found for this signature in database
GPG key ID: 4CDA6F249DD2B485

View file

@ -147,7 +147,7 @@ def test_update_package_cache_failure_no_errors(Pihole):
''' '''
confirms package cache was not updated confirms package cache was not updated
''' '''
mock_command('apt-get', {'update': ('', '1')}, Pihole) mock_command('apt', {'update': ('', '1')}, Pihole)
updateCache = Pihole.run(''' updateCache = Pihole.run('''
source /opt/pihole/basic-install.sh source /opt/pihole/basic-install.sh
package_manager_detect package_manager_detect