Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
python-pytest-testinfra
testinfra-parametrize-backends-test.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File testinfra-parametrize-backends-test.patch of Package python-pytest-testinfra
Index: pytest-testinfra-10.0.0/test/test_backends.py =================================================================== --- pytest-testinfra-10.0.0.orig/test/test_backends.py +++ pytest-testinfra-10.0.0/test/test_backends.py @@ -476,13 +476,13 @@ def test_ansible_unknown_option(): with pytest.raises(KeyError, match="^'unknown'$"): runner.options_to_cli({"unknown": True}) - -def test_backend_importables(): +@pytest.mark.parametrize('connection_type', + testinfra.backend.BACKENDS.keys()) +def test_backend_importables(connection_type): # just check that all declared backend are importable and NAME is set # correctly - for connection_type in testinfra.backend.BACKENDS: - obj = testinfra.backend.get_backend_class(connection_type) - assert obj.get_connection_type() == connection_type + obj = testinfra.backend.get_backend_class(connection_type) + assert obj.get_connection_type() == connection_type @pytest.mark.testinfra_hosts("docker://rockylinux9", "ssh://rockylinux9")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor