Skip to content

Commit d8f013c

Browse files
authored
Merge pull request #444 from test-fullautomation/HolQue/task/selftest_development
Self test: Error messages adapted
2 parents 2c5c30f + 2f3e907 commit d8f013c

File tree

2 files changed

+9
-32
lines changed

2 files changed

+9
-32
lines changed

test/component_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#
2323
# --------------------------------------------------------------------------------------------------------------
2424
#
25-
VERSION = "0.59.0"
26-
VERSION_DATE = "10.04.2025"
25+
VERSION = "0.60.0"
26+
VERSION_DATE = "23.04.2025"
2727
#
2828
# --------------------------------------------------------------------------------------------------------------
2929
#TM***

test/testconfig/TestConfig.py

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#
2323
# --------------------------------------------------------------------------------------------------------------
2424
#
25-
# 10.04.2025
25+
# 23.04.2025
2626
#
2727
# !!! Temporarily tests are deactivated by the following line commented out:
2828
# # # listofdictUsecases.append(dictUsecase)
@@ -3189,10 +3189,7 @@
31893189
dictUsecase['HINT'] = None
31903190
dictUsecase['COMMENT'] = "Cyclic import"
31913191
dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_1150.jsonp"
3192-
# temporary adaption
3193-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/389
3194-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/393#issuecomment-2792637445
3195-
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection while handling the file"
3192+
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection"
31963193
dictUsecase['EXPECTEDRETURN'] = None
31973194
listofdictUsecases.append(dictUsecase)
31983195
del dictUsecase
@@ -3206,10 +3203,7 @@
32063203
dictUsecase['HINT'] = None
32073204
dictUsecase['COMMENT'] = "Cyclic import"
32083205
dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_1151.jsonp"
3209-
# temporary adaption
3210-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/389
3211-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/393#issuecomment-2792637445
3212-
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection while handling the file"
3206+
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection"
32133207
dictUsecase['EXPECTEDRETURN'] = None
32143208
listofdictUsecases.append(dictUsecase)
32153209
del dictUsecase
@@ -3223,10 +3217,7 @@
32233217
dictUsecase['HINT'] = None
32243218
dictUsecase['COMMENT'] = "Cyclic import"
32253219
dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_1152.jsonp"
3226-
# temporary adaption
3227-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/389
3228-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/393#issuecomment-2792637445
3229-
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection while handling the file"
3220+
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection"
32303221
dictUsecase['EXPECTEDRETURN'] = None
32313222
listofdictUsecases.append(dictUsecase)
32323223
del dictUsecase
@@ -3240,10 +3231,7 @@
32403231
dictUsecase['HINT'] = None
32413232
dictUsecase['COMMENT'] = "Cyclic import"
32423233
dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_1153.jsonp"
3243-
# temporary adaption
3244-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/389
3245-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/393#issuecomment-2792637445
3246-
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection while handling the file"
3234+
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection"
32473235
dictUsecase['EXPECTEDRETURN'] = None
32483236
listofdictUsecases.append(dictUsecase)
32493237
del dictUsecase
@@ -3408,9 +3396,6 @@
34083396
del dictUsecase
34093397
# --------------------------------------------------------------------------------------------------------------
34103398
dictUsecase = {}
3411-
# Cyclic import is detected, but file list in exception should be checked.
3412-
# Similar to: https://github.com/test-fullautomation/python-jsonpreprocessor/issues/389
3413-
# Here: 'imported.ST03.1.jsonp' is not expected to be part of file list in exception.
34143399
dictUsecase['TESTID'] = "JPP_1165"
34153400
dictUsecase['DESCRIPTION'] = "JSON file with cyclic imports (sawtooth, stopped)"
34163401
dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception"
@@ -3419,17 +3404,12 @@
34193404
dictUsecase['HINT'] = None
34203405
dictUsecase['COMMENT'] = "Cyclic import"
34213406
dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_1165.jsonp"
3422-
# temporary adaption
3423-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/389
3424-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/393#issuecomment-2792637445
3425-
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection while handling the file"
3407+
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection"
34263408
dictUsecase['EXPECTEDRETURN'] = None
34273409
listofdictUsecases.append(dictUsecase)
34283410
del dictUsecase
34293411
# --------------------------------------------------------------------------------------------------------------
34303412
dictUsecase = {}
3431-
# Cyclic import is detected, but file list in exception is not correct.
3432-
# Similar to: https://github.com/test-fullautomation/python-jsonpreprocessor/issues/389
34333413
dictUsecase['TESTID'] = "JPP_1166"
34343414
dictUsecase['DESCRIPTION'] = "JSON file with cyclic imports (sawtooth, endless)"
34353415
dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception"
@@ -3438,10 +3418,7 @@
34383418
dictUsecase['HINT'] = None
34393419
dictUsecase['COMMENT'] = "Cyclic import"
34403420
dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_1166.jsonp"
3441-
# temporary adaption
3442-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/389
3443-
# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/393#issuecomment-2792637445
3444-
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection while handling the file"
3421+
dictUsecase['EXPECTEDEXCEPTION'] = "Cyclic import detection"
34453422
dictUsecase['EXPECTEDRETURN'] = None
34463423
listofdictUsecases.append(dictUsecase)
34473424
del dictUsecase

0 commit comments

Comments
 (0)