Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests, WebHost: add tests for host_room and minor cleanup #3619

Merged
merged 6 commits into from
Jul 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tests, WebHost: use user_path for logs
This is what custom_server does now.
  • Loading branch information
black-sliver committed Jul 4, 2024
commit 2747600bca1f9b2dd2affafccd4b3cce22cea55f
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
Loading