8000 Make aptitude role faster by jbzdak · Pull Request #136 · python-provy/provy · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 27, 2021. It is now read-only.

Make aptitude role faster #136

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Test fixes.
  • Loading branch information
jbzdak committed Dec 28, 2013
commit c555f0f0bf8468e24985de18b88aa1dffbef976c
2 changes: 1 addition & 1 deletion provy/more/debian/package/aptitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def provision(self):
'''

if not self.is_package_installed('aptitude'):
self.execute('apt-get update')
self.execute('apt-get update', stdout=False, sudo=True)
self.execute('apt-get install aptitude -y', stdout=False, sudo=True)

self.ensure_package_installed('curl')
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/more/debian/package/test_aptitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ def installs_necessary_packages_to_provision(self):
self.role.provision()

self.role.is_package_installed.assert_called_once_with('aptitude')
self.role.execute.call_args_list == [
self.assertEqual(self.role.execute.call_args_list, [
call('apt-get update', stdout=False, sudo=True),
call('apt-get install aptitude -y', stdout=False, sudo=True),
]
])
self.role.ensure_package_installed.assert_called_once_with('curl')

@istest
Expand Down
0