Commit b7e2fac8 authored by Manuel Grizonnet's avatar Manuel Grizonnet

TEST: add tests which instanciate all paramters of all app in Python

parent c6007130
......@@ -84,3 +84,8 @@ add_test( NAME pyTvNewStyleParameters
add_test( NAME pyTvNewStyleParametersInstanciateAll
import otbApplication as otb
import operator
import inspect
# List applications
appNames = [app for app in otb.Registry.GetAvailableApplications()]
for appName in appNames:
app = otb.Registry.CreateApplication(appName)
# Generate parameters
parameters = app.GetParametersKeys()
for param in parameters:
upParam = param.upper()
if app.HasValue(param):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment