mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Add tests for the plugin mechanism
This commit is contained in:
33
integration-tests/plugins/simplest/tljh_simplest.py
Normal file
33
integration-tests/plugins/simplest/tljh_simplest.py
Normal file
@@ -0,0 +1,33 @@
|
||||
"""
|
||||
Simplest plugin that excercises all the hooks
|
||||
"""
|
||||
from tljh.hooks import hookimpl
|
||||
|
||||
|
||||
@hookimpl
|
||||
def tljh_extra_user_conda_packages():
|
||||
return [
|
||||
'hypothesis',
|
||||
]
|
||||
|
||||
|
||||
@hookimpl
|
||||
def tljh_extra_user_pip_packages():
|
||||
return [
|
||||
'django',
|
||||
]
|
||||
|
||||
|
||||
@hookimpl
|
||||
def tljh_extra_apt_packages():
|
||||
return [
|
||||
'sl',
|
||||
]
|
||||
|
||||
|
||||
@hookimpl
|
||||
def tljh_config_post_install(config):
|
||||
# Put an arbitrary marker we can test for
|
||||
config['simplest_plugin'] = {
|
||||
'present': True
|
||||
}
|
||||
Reference in New Issue
Block a user