Debian Codegraph @

plinth/tests/functional/enable-all-apps

raw symbols SCIP
1 #!/usr/bin/python3
2 #
3 # SPDX-License-Identifier: AGPL-3.0-or-later
4 #
5 # Set FREEDOMBOX_URL to the URL of the FreedomBox on which
6 # all apps will be enabled.
7
8 from splinter import Browser
9
10 from plinth import app as app_module, module_loader
11 from plinth.tests.functional import app_enable, install, login
12
13 module_loader.load_modules()
14 app_module.apps_init()
15
16 browser = Browser('firefox')
17 login(browser)
18
19 for app in app_module.App.list():
20 app_name = app.app_id
21 try:
22 # Some apps cannot be installed.
23 install(browser, app_name)
24 except:
25 pass
26
27 try:
28 app_enable(browser, app_name)
29 except:
30 # Some apps cannot be enabled.
31 pass