Skip to content

Commit

Permalink
Merge pull request #250 from Akasurde/sanity_fixes
Browse files Browse the repository at this point in the history
sanity fixes for pylint test

SUMMARY
Signed-off-by: Abhijeet Kasurde [email protected]
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
changelogs/fragments/sanity_fixes.yml
tests/sanity/ignore-2.12.txt
tests/unit/mock/loader.py

Reviewed-by: Andrew Klychkov <[email protected]>
Reviewed-by: None <None>
  • Loading branch information
ansible-zuul[bot] authored Aug 16, 2021
2 parents ab9eaf2 + 249e64a commit 01bccb0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/sanity_fixes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- sanity fixes for pylint test.
2 changes: 1 addition & 1 deletion tests/sanity/ignore-2.12.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugins/modules/synchronize.py pylint:blacklisted-name
plugins/modules/synchronize.py pylint:disallowed-name
plugins/modules/synchronize.py use-argspec-type-path
plugins/modules/synchronize.py validate-modules:doc-default-does-not-match-spec
plugins/modules/synchronize.py validate-modules:nonexistent-parameter-documented
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/mock/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def load_from_file(self, path, cache=True, unsafe=False):

# TODO: the real _get_file_contents returns a bytestring, so we actually convert the
# unicode/text it's created with to utf-8
def _get_file_contents(self, path):
path = to_text(path)
def _get_file_contents(self, file_name):
path = to_text(file_name)
if path in self._file_mapping:
return (to_bytes(self._file_mapping[path]), False)
else:
Expand Down

0 comments on commit 01bccb0

Please sign in to comment.