18 lines
501 B
Python
18 lines
501 B
Python
"""De startwizard blijft gesloten nadat de gebruiker hem heeft afgerond."""
|
|
|
|
from conftest import login
|
|
|
|
|
|
def test_voltooide_wizard_blijft_voltooid_als_library_niet_bestaat(
|
|
client, env):
|
|
login(client)
|
|
ontbrekend = env["tmp"] / "nog-niet-gemounte-library"
|
|
env["core"].patch({
|
|
"LIBRARY_DIR": str(ontbrekend),
|
|
"WIZARD_DONE": True,
|
|
})
|
|
|
|
antwoord = client.get("/api/wizard")
|
|
|
|
assert antwoord.status_code == 200
|
|
assert antwoord.get_json()["done"] is True
|