cleanup in tests

This commit is contained in:
Qyriad 2026-02-18 14:01:39 +01:00
parent 6931853de3
commit f447fd0a99
5 changed files with 29 additions and 35 deletions

View file

@ -70,7 +70,6 @@ def do_apply():
machine.wait_for_unit("default.target")
assert "lix" in machine.succeed("nix --version").lower()
machine.wait_for_unit("install-dynix.service")
dynix_out = machine.succeed("dynix --version")
@ -89,6 +88,12 @@ except StopIteration:
raise AssertionError(f"no 'application-name:' found in config file: {textwrap.indent(config_text, " ")}")
assert "gotosocial-for-machine" in application_name, f"'gotosocial-for-machine' should be in {application_name=}"
try:
host = next(line for line in lines if line.startswith("host:"))
except StopIteration:
raise AssertionError(f"no 'host:' found in config file: {textwrap.indent(config_text, " ")}")
assert "gotosocial-machine" in host, f"'gotosocial-machine' should be in {host=}"
new_app_name = "yay!"
dynix_append("services.gotosocial.settings.application-name", f'"{new_app_name}"')
do_apply()