Skip to content

Commit fed5cfc

Browse files
authored
fix lint issues (#29)
* fix lint issues * add changelog fragment * fix description * change action checkout version * missing action v3
1 parent c4d2736 commit fed5cfc

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

.github/workflows/ansible-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333

3434
- name: Check out code
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3636

3737
- name: Perform sanity testing with ansible-test
3838
uses: ansible-community/ansible-test-gh-action@release/v1
@@ -62,7 +62,7 @@ jobs:
6262

6363
steps:
6464
- name: Check out code
65-
uses: actions/checkout@v2
65+
uses: actions/checkout@v3
6666

6767
- name: Perform unit testing with ansible-test
6868
uses: ansible-community/ansible-test-gh-action@release/v1
@@ -105,7 +105,7 @@ jobs:
105105

106106
# steps:
107107
# - name: Check out code
108-
# uses: actions/checkout@v2
108+
# uses: actions/checkout@v3
109109

110110
# - name: Perform integration testing with ansible-test
111111
# uses: ansible-community/ansible-test-gh-action@release/v1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
bugfixes:
2+
- fixes failures in sanity test for plugins/modules/sap_pyrfc.py
3+
- fixes failures in sanity test for tests/unit/compat/builtins.py
4+
- fixes failures in sanity test for tests/unit/plugins/modules/test_sap_system_facts.py
5+
- fixes failures in sanity test for tests/unit/plugins/modules/test_sap_system_facts.py
6+
- fixes pipeline warnings

plugins/modules/sap_pyrfc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
from ..module_utils.pyrfc_handler import get_connection
114114

115115
try:
116-
from pyrfc import ABAPApplicationError, ABAPRuntimeError, CommunicationError, Connection, LogonError
116+
from pyrfc import ABAPApplicationError, ABAPRuntimeError, CommunicationError, LogonError
117117
except ImportError:
118118
HAS_PYRFC_LIBRARY = False
119119
PYRFC_LIBRARY_IMPORT_ERROR = traceback.format_exc()

tests/unit/compat/builtins.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,3 @@
2222
#
2323
# Compat for python2.7
2424
#
25-
26-
# One unittest needs to import builtins via __import__() so we need to have
27-
# the string that represents it
28-
try:
29-
import __builtin__
30-
except ImportError:
31-
BUILTINS = 'builtins'
32-
else:
33-
BUILTINS = '__builtin__'

tests/unit/plugins/modules/test_sap_system_facts.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55

66
from __future__ import absolute_import, division, print_function
77

8-
import mock
98
__metaclass__ = type
109

1110
from ansible_collections.community.sap_libs.plugins.modules import sap_system_facts
1211
from ansible_collections.community.sap_libs.tests.unit.plugins.modules.utils import AnsibleExitJson, ModuleTestCase
13-
from ansible_collections.community.sap_libs.tests.unit.compat.mock import patch, MagicMock
12+
from ansible_collections.community.sap_libs.tests.unit.compat.mock import patch
1413
from ansible.module_utils import basic
1514

1615

0 commit comments

Comments
 (0)