AppInterface.app_name
AppInterface.app_name |
Purpose
Property for the name of the Xpress Insight application which is the parent of the model.
Synopsis
app_name: str
Return value
The name of the application.
Example
Demonstration of setting the application name (test mode only).
>>> insight.app_name = 'My App'
Demonstration of getting the application name then outputting it.
>>> print('app name = ', insight.app_name) app name = My App
Further information
1. The
app_name property can only be set in test mode.
2. The application name is not related to the name defined in the model's source code.
3. Used to mock the Insight application state when testing code outside of an Insight scenario. By default,
insight.app_name will return an empty string in test mode.
4. Modifying this property when
insight.test_mode is
False will cause the model to abort with a runtime error.