Feat: formating and remove useless var
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
"""Role testing files using testinfra."""
|
||||
import pytest
|
||||
|
||||
|
||||
def test_installed_packages(host):
|
||||
collectd = host.package("collectd-core")
|
||||
assert collectd.is_installed
|
||||
|
||||
|
||||
def test_config(host):
|
||||
collectd_config = host.file("/etc/collectd/collectd.conf")
|
||||
assert collectd_config.exists
|
||||
@@ -12,6 +14,7 @@ def test_config(host):
|
||||
dtypes = host.file("/usr/share/collectd/types.db")
|
||||
assert dtypes.exists
|
||||
|
||||
|
||||
def test_service(host):
|
||||
collectd = host.service("collectd")
|
||||
assert collectd.is_enabled
|
||||
|
Reference in New Issue
Block a user