mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-08 00:18:15 +03:00
Fixed linting issues found by black
This commit is contained in:
@@ -16,6 +16,5 @@ def pytest_runtest_setup(item):
|
|||||||
).get_hosts("all")
|
).get_hosts("all")
|
||||||
else:
|
else:
|
||||||
pytest.skip(
|
pytest.skip(
|
||||||
"Test should run only from inside molecule.",
|
"Test should run only from inside molecule.", allow_module_level=True
|
||||||
allow_module_level=True
|
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ def test_lvm_package_shall_be_installed(host):
|
|||||||
def test_non_persistent_volume_group_is_created(host):
|
def test_non_persistent_volume_group_is_created(host):
|
||||||
command = """sudo vgdisplay | grep -c 'my_vg'"""
|
command = """sudo vgdisplay | grep -c 'my_vg'"""
|
||||||
cmd = host.run(command)
|
cmd = host.run(command)
|
||||||
assert '1' in cmd.stdout
|
assert "1" in cmd.stdout
|
||||||
|
|
||||||
|
|
||||||
def test_mylv_logical_volume_is_created(host):
|
def test_mylv_logical_volume_is_created(host):
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ def test_lvm_package_shall_be_installed(host):
|
|||||||
def test_non_persistent_volume_group_is_created(host):
|
def test_non_persistent_volume_group_is_created(host):
|
||||||
command = """sudo vgdisplay | grep -c 'my_vg'"""
|
command = """sudo vgdisplay | grep -c 'my_vg'"""
|
||||||
cmd = host.run(command)
|
cmd = host.run(command)
|
||||||
assert '1' in cmd.stdout
|
assert "1" in cmd.stdout
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ def test_lvm_package_shall_be_installed(host):
|
|||||||
def test_non_persistent_volume_group_is_created(host):
|
def test_non_persistent_volume_group_is_created(host):
|
||||||
command = """sudo vgdisplay | grep -c 'my_vg'"""
|
command = """sudo vgdisplay | grep -c 'my_vg'"""
|
||||||
cmd = host.run(command)
|
cmd = host.run(command)
|
||||||
assert '1' in cmd.stdout
|
assert "1" in cmd.stdout
|
||||||
|
|
||||||
|
|
||||||
def test_mylv_logical_volume_is_created(host):
|
def test_mylv_logical_volume_is_created(host):
|
||||||
|
|||||||
Reference in New Issue
Block a user