test-fullautomation / python-jsonpreprocessor

A preprocessor for json files
Apache License 2.0
3 stars 2 forks source link

Added further JSONP self test files (for tests of dynamic import) #378

Closed HolQue closed 3 weeks ago

HolQue commented 3 weeks ago

Test case: "[import]" : "./dynamic_imports/mixed_import.jsonp"

A JSONP file (mixed_import) imports with a dynamic path another file (AA) that imports with a fix path another file (BB) that imports with a dynamic path another file (CC) that imports with a fix path another file (DD)

The computation stops at level 'BB' and the import of level 'CC' is not resolved:

'[import]': '... /dynamic_imports/AA/BB/CC/imported.CC.M.jsonp',
 'level': 'BB'

Seems that the problem is caused by a switch from a dynamic path to a fix path.

Expected is level 'DD.3'

HolQue commented 3 weeks ago

Hmm, this statement from above is wrong: "Seems that the problem is caused by a switch from a dynamic path to a fix path."

It's other way round: The switch from fix to dynamic does not work.

HolQue commented 3 weeks ago

JPP_1106 JPP_1107 JPP_1108

HolQue commented 2 weeks ago

JPP_1106 JPP_1107 JPP_1108 run successful now