test: Raise on missing NEXTCLOUD_PASSWORD

This commit is contained in:
Chris Coutinho
2026-05-09 14:39:55 +02:00
parent 22a2a24941
commit fc9786c3a9
@@ -94,7 +94,9 @@ async def test_enable_semantic_search_completes_oauth_for_login_flow(browser):
``oauth-required.php`` template and the link reappears — making this
test the canary for the drift class.
"""
admin_password = os.environ.get("NEXTCLOUD_PASSWORD", "admin")
admin_password = os.getenv("NEXTCLOUD_PASSWORD")
if admin_password is None:
raise RuntimeError("NEXTCLOUD_PASSWORD must be set")
page = await browser.new_page()
try:
await login_to_nextcloud(page, "admin", admin_password)