From 742c753d65c31acc50a402424c81ec5b75f0bbac Mon Sep 17 00:00:00 2001 From: mas2hc Date: Tue, 25 Mar 2025 10:33:06 +0700 Subject: [PATCH] Commented out test cases due to the commented out in TestConfig.py isn't effective --- .../test_08_NAMING_CONVENTION_BADCASE.py | 102 +++++++++--------- .../test_16_FILE_IMPORTS_BADCASE.py | 30 +++--- 2 files changed, 67 insertions(+), 65 deletions(-) diff --git a/test/pytest/pytestfiles/test_08_NAMING_CONVENTION_BADCASE.py b/test/pytest/pytestfiles/test_08_NAMING_CONVENTION_BADCASE.py index 87eddff..d40999b 100644 --- a/test/pytest/pytestfiles/test_08_NAMING_CONVENTION_BADCASE.py +++ b/test/pytest/pytestfiles/test_08_NAMING_CONVENTION_BADCASE.py @@ -26,55 +26,55 @@ from pytestlibs.CExecute import CExecute # -------------------------------------------------------------------------------------------------------------- +# mas2hc: Commented out the Test_NAMING_CONVENTION_BADCASE test cases due to the comment out in TestConfig.py is not effective +# class Test_NAMING_CONVENTION_BADCASE: -class Test_NAMING_CONVENTION_BADCASE: - -# -------------------------------------------------------------------------------------------------------------- - # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception - @pytest.mark.parametrize( - "Description", ["JSON file with several invalid parameter names (1)",] - ) - def test_JPP_0450(self, Description): - nReturn = CExecute.Execute("JPP_0450") - assert nReturn == 0 -# -------------------------------------------------------------------------------------------------------------- - # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception - @pytest.mark.parametrize( - "Description", ["JSON file with several invalid parameter names (2)",] - ) - def test_JPP_0451(self, Description): - nReturn = CExecute.Execute("JPP_0451") - assert nReturn == 0 -# -------------------------------------------------------------------------------------------------------------- - # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception - @pytest.mark.parametrize( - "Description", ["JSON file with several invalid parameter names (3)",] - ) - def test_JPP_0452(self, Description): - nReturn = CExecute.Execute("JPP_0452") - assert nReturn == 0 -# -------------------------------------------------------------------------------------------------------------- - # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception - @pytest.mark.parametrize( - "Description", ["JSON file with several invalid parameter names (4)",] - ) - def test_JPP_0453(self, Description): - nReturn = CExecute.Execute("JPP_0453") - assert nReturn == 0 -# -------------------------------------------------------------------------------------------------------------- - # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception - @pytest.mark.parametrize( - "Description", ["JSON file with several invalid parameter names (5)",] - ) - def test_JPP_0454(self, Description): - nReturn = CExecute.Execute("JPP_0454") - assert nReturn == 0 -# -------------------------------------------------------------------------------------------------------------- - # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception - @pytest.mark.parametrize( - "Description", ["JSON file with several invalid parameter names (6)",] - ) - def test_JPP_0455(self, Description): - nReturn = CExecute.Execute("JPP_0455") - assert nReturn == 0 -# -------------------------------------------------------------------------------------------------------------- +# # -------------------------------------------------------------------------------------------------------------- +# # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception +# @pytest.mark.parametrize( +# "Description", ["JSON file with several invalid parameter names (1)",] +# ) +# def test_JPP_0450(self, Description): +# nReturn = CExecute.Execute("JPP_0450") +# assert nReturn == 0 +# # -------------------------------------------------------------------------------------------------------------- +# # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception +# @pytest.mark.parametrize( +# "Description", ["JSON file with several invalid parameter names (2)",] +# ) +# def test_JPP_0451(self, Description): +# nReturn = CExecute.Execute("JPP_0451") +# assert nReturn == 0 +# # -------------------------------------------------------------------------------------------------------------- +# # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception +# @pytest.mark.parametrize( +# "Description", ["JSON file with several invalid parameter names (3)",] +# ) +# def test_JPP_0452(self, Description): +# nReturn = CExecute.Execute("JPP_0452") +# assert nReturn == 0 +# # -------------------------------------------------------------------------------------------------------------- +# # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception +# @pytest.mark.parametrize( +# "Description", ["JSON file with several invalid parameter names (4)",] +# ) +# def test_JPP_0453(self, Description): +# nReturn = CExecute.Execute("JPP_0453") +# assert nReturn == 0 +# # -------------------------------------------------------------------------------------------------------------- +# # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception +# @pytest.mark.parametrize( +# "Description", ["JSON file with several invalid parameter names (5)",] +# ) +# def test_JPP_0454(self, Description): +# nReturn = CExecute.Execute("JPP_0454") +# assert nReturn == 0 +# # -------------------------------------------------------------------------------------------------------------- +# # Expected: Expected: No values are returned, and JsonPreprocessor throws an exception +# @pytest.mark.parametrize( +# "Description", ["JSON file with several invalid parameter names (6)",] +# ) +# def test_JPP_0455(self, Description): +# nReturn = CExecute.Execute("JPP_0455") +# assert nReturn == 0 +# # -------------------------------------------------------------------------------------------------------------- diff --git a/test/pytest/pytestfiles/test_16_FILE_IMPORTS_BADCASE.py b/test/pytest/pytestfiles/test_16_FILE_IMPORTS_BADCASE.py index e2b392a..64cfc17 100644 --- a/test/pytest/pytestfiles/test_16_FILE_IMPORTS_BADCASE.py +++ b/test/pytest/pytestfiles/test_16_FILE_IMPORTS_BADCASE.py @@ -95,20 +95,22 @@ def test_JPP_1157(self, Description): assert nReturn == 0 # -------------------------------------------------------------------------------------------------------------- # Expected: No values are returned, and JsonPreprocessor throws an exception - @pytest.mark.parametrize( - "Description", ["JSON file with error in [import] key (1)",] - ) - def test_JPP_1158(self, Description): - nReturn = CExecute.Execute("JPP_1158") - assert nReturn == 0 -# -------------------------------------------------------------------------------------------------------------- - # Expected: No values are returned, and JsonPreprocessor throws an exception - @pytest.mark.parametrize( - "Description", ["JSON file with error in [import] key (2)",] - ) - def test_JPP_1159(self, Description): - nReturn = CExecute.Execute("JPP_1159") - assert nReturn == 0 + # mas2hc: Commented out this test case due to the comment out in TestConfig.py is not effective + # @pytest.mark.parametrize( + # "Description", ["JSON file with error in [import] key (1)",] + # ) + # def test_JPP_1158(self, Description): + # nReturn = CExecute.Execute("JPP_1158") + # assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: No values are returned, and JsonPreprocessor throws an exception + # mas2hc: Commented out this test case due to the comment out in TestConfig.py is not effective + # @pytest.mark.parametrize( + # "Description", ["JSON file with error in [import] key (2)",] + # ) + # def test_JPP_1159(self, Description): + # nReturn = CExecute.Execute("JPP_1159") + # assert nReturn == 0 # -------------------------------------------------------------------------------------------------------------- # Expected: No values are returned, and JsonPreprocessor throws an exception @pytest.mark.parametrize(