From 1ac8b826bf3ddf8e1f3cae67456da05f3823af85 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Fri, 5 Jan 2024 06:32:09 +0000 Subject: [PATCH] pylint fixes --- .pylint_dict.txt | 2 ++ spinnaker_testbase/base_test_case.py | 4 ++-- spinnaker_testbase/script_checker.py | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.pylint_dict.txt b/.pylint_dict.txt index d346f98..c7c89cd 100644 --- a/.pylint_dict.txt +++ b/.pylint_dict.txt @@ -23,8 +23,10 @@ unittest # Our "special" words dirs +iobuf xyz # Python bits +env # Misc diff --git a/spinnaker_testbase/base_test_case.py b/spinnaker_testbase/base_test_case.py index 376c798..03087b0 100644 --- a/spinnaker_testbase/base_test_case.py +++ b/spinnaker_testbase/base_test_case.py @@ -66,7 +66,7 @@ def get_provenance_files(self) -> List[str]: def get_system_iobuf_files(self) -> List[str]: """ - Get a list of the system iobug files. + Get a list of the system iobuf files. :rtype: list(str) """ @@ -75,7 +75,7 @@ def get_system_iobuf_files(self) -> List[str]: def get_app_iobuf_files(self) -> List[str]: """ - Get a list of the application iobug files. + Get a list of the application iobuf files. :rtype: list(str) """ diff --git a/spinnaker_testbase/script_checker.py b/spinnaker_testbase/script_checker.py index 1c606a4..04823b6 100644 --- a/spinnaker_testbase/script_checker.py +++ b/spinnaker_testbase/script_checker.py @@ -27,6 +27,11 @@ # This is a global function as pydevd calls _needsmain when debugging def mockshow(): + """ + This will replace pyplot.show during script tests + + This avoids the plots from printed but checks the script tried to + """ # pylint: disable=global-statement global script_checker_shown script_checker_shown = True