tests: functional: Refactor install/setup fixture for apps

- Fixes an issue with zoph not being setup after uninstall+install setup and
makes a test pass.

- Some failures exist but don't seem related to this change.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2024-03-11 16:50:56 -04:00
1 parent 8096c14b14
commit 5dbf890881
7 files changed
+27 -31

No files matched your search

@@ -15,11 +15,9 @@ class TestShadowsocksServerApp(functional.BaseAppTests):
has_service = True
has_web = False
@pytest.fixture(scope='class', autouse=True)
def fixture_setup(self, session_browser):
"""Setup the app."""
functional.login(session_browser)
functional.install(session_browser, 'shadowsocksserver')
def install_and_setup(self, session_browser):
"""Install the app and run setup."""
super().install_and_setup(session_browser)
_configure(session_browser, 'fakepassword')
@pytest.mark.backups