mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 03:37:01 +00:00
[PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409)
Sort imports with ruff check --fix (#11400)
Sort imports with ruff check --fix.
(cherry picked from commit 236b9c0e04)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
ebaf2e71d5
commit
b769b0bc01
829 changed files with 1644 additions and 1692 deletions
|
|
@ -5,7 +5,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import gitlab
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.general.plugins.modules.gitlab_runner import GitLabRunner
|
||||
|
|
@ -19,22 +18,22 @@ def _dummy(x):
|
|||
|
||||
pytestmark = []
|
||||
try:
|
||||
# GitLab module requirements
|
||||
from gitlab.v4.objects import Runner
|
||||
|
||||
from .gitlab import (
|
||||
FakeAnsibleModule,
|
||||
GitlabModuleTestCase,
|
||||
resp_find_runners_all,
|
||||
resp_find_runners_list,
|
||||
resp_find_project_runners,
|
||||
resp_find_group_runners,
|
||||
resp_get_runner,
|
||||
resp_create_runner,
|
||||
resp_delete_runner,
|
||||
resp_get_project_by_name,
|
||||
resp_find_group_runners,
|
||||
resp_find_project_runners,
|
||||
resp_find_runners_all,
|
||||
resp_find_runners_list,
|
||||
resp_get_group_by_name,
|
||||
resp_get_project_by_name,
|
||||
resp_get_runner,
|
||||
)
|
||||
|
||||
# GitLab module requirements
|
||||
from gitlab.v4.objects import Runner
|
||||
except ImportError:
|
||||
pytestmark.append(pytest.mark.skip("Could not load gitlab module required for testing"))
|
||||
# Need to set these to something so that we don't fail when parsing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue