diff --git a/test/conftest.py b/test/conftest.py index aebf5173..07166ec5 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -153,4 +153,4 @@ def mock_command_2(script, args, container): def run_script(Pihole, script): result = Pihole.run(script) assert result.rc == 0 - return result \ No newline at end of file + return result diff --git a/test/test_centos_7_support.py b/test/test_centos_7_support.py index 78cc6070..2f744ab4 100644 --- a/test/test_centos_7_support.py +++ b/test/test_centos_7_support.py @@ -1,8 +1,6 @@ -import pytest from .conftest import ( tick_box, info_box, - cross_box, mock_command, ) diff --git a/test/test_centos_8_support.py b/test/test_centos_8_support.py index 899cff2f..d3e83658 100644 --- a/test/test_centos_8_support.py +++ b/test/test_centos_8_support.py @@ -1,8 +1,6 @@ -import pytest from .conftest import ( tick_box, info_box, - cross_box, mock_command, ) diff --git a/test/test_centos_common_support.py b/test/test_centos_common_support.py index 4490f220..fdf43cba 100644 --- a/test/test_centos_common_support.py +++ b/test/test_centos_common_support.py @@ -117,4 +117,4 @@ def test_php_version_lt_7_detected_upgrade_user_optin_centos(Pihole): assert remi_package.is_installed updated_php_package = Pihole.package('php') updated_php_version = updated_php_package.version.split('.')[0] - assert int(updated_php_version) == 7 \ No newline at end of file + assert int(updated_php_version) == 7 diff --git a/test/test_centos_fedora_common_support.py b/test/test_centos_fedora_common_support.py index 7338f0fc..21ae6d1d 100644 --- a/test/test_centos_fedora_common_support.py +++ b/test/test_centos_fedora_common_support.py @@ -1,7 +1,5 @@ -import pytest from .conftest import ( tick_box, - info_box, cross_box, mock_command, ) @@ -52,6 +50,7 @@ def test_selinux_permissive(Pihole): assert expected_stdout in check_selinux.stdout assert check_selinux.rc == 0 + def test_selinux_disabled(Pihole): ''' confirms installer continues when SELinux is Disabled diff --git a/test/test_fedora_support.py b/test/test_fedora_support.py index a5823883..473b2e96 100644 --- a/test/test_fedora_support.py +++ b/test/test_fedora_support.py @@ -1,12 +1,3 @@ -import pytest -from .conftest import ( - tick_box, - info_box, - cross_box, - mock_command, -) - - def test_epel_and_remi_not_installed_fedora(Pihole): ''' confirms installer does not attempt to install EPEL/REMI repositories