From 2747600bca1f9b2dd2affafccd4b3cce22cea55f Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Thu, 4 Jul 2024 10:10:34 +0200 Subject: [PATCH] Tests, WebHost: use user_path for logs This is what custom_server does now. --- test/webhost/test_host_room.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/webhost/test_host_room.py b/test/webhost/test_host_room.py index ff13b80775bc..d4cc51d8497f 100644 --- a/test/webhost/test_host_room.py +++ b/test/webhost/test_host_room.py @@ -12,6 +12,7 @@ class TestHostFakeRoom(TestBase): def setUp(self) -> None: from pony.orm import db_session + from Utils import user_path from WebHostLib.models import Room, Seed super().setUp() @@ -23,7 +24,7 @@ def setUp(self) -> None: seed = Seed(multidata=b"", owner=session["_id"]) room = Room(seed=seed, owner=session["_id"], tracker=uuid4()) self.room_id = room.id - self.log_filename = f"logs/{self.room_id}.txt" + self.log_filename = user_path("logs", f"{self.room_id}.txt") def tearDown(self) -> None: from pony.orm import db_session, select