Removing superfluous imports from tests

Several unnecessary imports were removed from test modules.
Imports of the validations_common.tests.fakes were kept.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I8d6d5057fa08be1ccd84c01837d6e4c93ce01b89
This commit is contained in:
Jiri Podivin 2021-06-17 08:31:32 +02:00
parent 35f34ffdab
commit d57f09298d
5 changed files with 0 additions and 7 deletions

View File

@ -27,7 +27,6 @@ except ImportError:
from validations_common.tests import base from validations_common.tests import base
from validations_common.tests import fakes from validations_common.tests import fakes
import validations_common.library.reportentry as validation
from validations_common.callback_plugins import fail_if_no_hosts from validations_common.callback_plugins import fail_if_no_hosts
from ansible.plugins.callback import CallbackBase from ansible.plugins.callback import CallbackBase

View File

@ -34,7 +34,6 @@ from ansible.parsing.ajson import AnsibleJSONEncoder
from ansible.playbook import Playbook from ansible.playbook import Playbook
from ansible.plugins.callback import CallbackBase from ansible.plugins.callback import CallbackBase
import validations_common.library.reportentry as validation
from validations_common.callback_plugins import validation_json from validations_common.callback_plugins import validation_json

View File

@ -29,7 +29,6 @@ from validations_common.tests import fakes
from ansible.plugins.callback import CallbackBase from ansible.plugins.callback import CallbackBase
import validations_common.library.reportentry as validation
from validations_common.callback_plugins import validation_output from validations_common.callback_plugins import validation_output

View File

@ -19,7 +19,6 @@ test_validation_stdout
Tests for `validation_stdout` callback plugin. Tests for `validation_stdout` callback plugin.
""" """
import os
import re import re
try: try:
@ -30,7 +29,6 @@ except ImportError:
from validations_common.tests import base from validations_common.tests import base
from validations_common.tests import fakes from validations_common.tests import fakes
import validations_common.library.reportentry as validation
from validations_common.callback_plugins import validation_stdout from validations_common.callback_plugins import validation_stdout
from ansible.plugins.callback import CallbackBase from ansible.plugins.callback import CallbackBase

View File

@ -20,8 +20,6 @@ except ImportError:
from validations_common.tests import base from validations_common.tests import base
from validations_common.tests import fakes from validations_common.tests import fakes
import subprocess
from validations_common.library import check_package_update as cppkg from validations_common.library import check_package_update as cppkg
PKG_INSTALLED = "foo-package|6.1.5|1|x86_64" PKG_INSTALLED = "foo-package|6.1.5|1|x86_64"