Skip to content

Commit

Permalink
Changed tests to use host fixture (#54)
Browse files Browse the repository at this point in the history
Other fixtures are deprecated and will be removed in 2.0 Testinfra release.
  • Loading branch information
freemanjp committed Sep 1, 2018
1 parent 462174e commit f4df87a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions molecule/default/tests/test_role.py
Expand Up @@ -7,8 +7,8 @@
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')


def test_apt_config_file_permissions(File):
conf = File('/etc/apt/apt.conf.d/80-test')
def test_apt_config_file_permissions(host):
conf = host.file('/etc/apt/apt.conf.d/80-test')

assert conf.exists
assert conf.is_file
Expand All @@ -22,8 +22,8 @@ def test_apt_config_file_permissions(File):
'APT::Archives::MinAge "82";',
'APT::Archives::MaxSize "83";'
])
def test_apt_config_file(File, param):
conf = File('/etc/apt/apt.conf.d/80-test')
def test_apt_config_file(host, param):
conf = host.file('/etc/apt/apt.conf.d/80-test')

assert conf.exists
assert conf.is_file
Expand Down

0 comments on commit f4df87a

Please sign in to comment.