diff options
Diffstat (limited to 'tests/plugins/advanced.py')
-rw-r--r-- | tests/plugins/advanced.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/plugins/advanced.py b/tests/plugins/advanced.py new file mode 100644 index 0000000..19eb051 --- /dev/null +++ b/tests/plugins/advanced.py @@ -0,0 +1,11 @@ +from pluginbase import get_plugin_source + + +def get_app(): + rv = get_plugin_source(stacklevel=1) + if rv is not None: + return rv.app + + +def get_app_name(): + return get_app().name |