diff --git a/leaderboards/test_models.py b/leaderboards/test_models.py index 2b5b9af..a7a4cb5 100644 --- a/leaderboards/test_models.py +++ b/leaderboards/test_models.py @@ -1,13 +1,12 @@ import pytest from leaderboards.models import Invite, Leaderboard, Membership -from profiles.models import OsuUser @pytest.mark.django_db class TestLeaderboard: def test_magic_str(self, leaderboard: Leaderboard): - assert str(leaderboard) == "[STANDARD] test leaderboard" + assert str(leaderboard) == "test leaderboard" def test_get_pp_record(self): # TODO: this @@ -29,7 +28,7 @@ def test_update_member_count(self): @pytest.mark.django_db class TestMembership: def test_magic_str(self, membership: Membership): - assert str(membership) == "[STANDARD] test leaderboard: TestOsuUser" + assert str(membership) == "test leaderboard: TestOsuUser" def test_recalculate(self): # TODO: this @@ -39,4 +38,4 @@ def test_recalculate(self): @pytest.mark.django_db class TestInvite: def test_magic_str(self, invite: Invite): - assert str(invite) == "[STANDARD] test leaderboard: TestOsuUser" + assert str(invite) == "test leaderboard: TestOsuUser" diff --git a/profiles/test_models.py b/profiles/test_models.py index f0bca49..dce5514 100644 --- a/profiles/test_models.py +++ b/profiles/test_models.py @@ -46,9 +46,6 @@ def test_update_difficulty_values(self, beatmap: Beatmap): @pytest.mark.django_db class TestScore: - def test_magic_str(self, score: Score): - assert str(score) == "1: 395pp" - def test_process(self, score: Score): score.process() assert score.result == ScoreResult.END_CHOKE diff --git a/users/test_models.py b/users/test_models.py index d62a37e..cb2a75e 100644 --- a/users/test_models.py +++ b/users/test_models.py @@ -14,4 +14,4 @@ def score_filter_preset(self, user: User, score_filter: ScoreFilter): ) def test_magic_str(self, score_filter_preset): - assert str(score_filter_preset) == f"{score_filter_preset.user_id}: Hidden" + assert str(score_filter_preset) == f"Hidden"