Skip to content

Commit

Permalink
Tests, WebHost: use user_path for logs
Browse files Browse the repository at this point in the history
This is what custom_server does now.
  • Loading branch information
black-sliver committed Jul 4, 2024
1 parent b1c0b16 commit 2747600
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/webhost/test_host_room.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit 2747600

Please sign in to comment.