Refactor tools module: removed unused tools, commented out legacy registrations, updated mock data in tests, consolidated imports, and standardized naming conventions in the codebase.
This commit is contained in:
parent
ec0fe38861
commit
328e597f48
16 changed files with 86 additions and 386 deletions
|
|
@ -32,6 +32,7 @@ def mock_profile_data():
|
|||
"isVerified": True,
|
||||
"level": 50,
|
||||
"rating": {"rating": 1500, "deviation": 100},
|
||||
"isProUser": True,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -45,7 +46,38 @@ def mock_game_data():
|
|||
"player": {
|
||||
"guesses": [
|
||||
{"roundScoreInPoints": 5000, "distanceInMeters": 0, "time": 10},
|
||||
{"roundScoreInPoints": 4500, "distanceInMeters": 100, "time": 15},
|
||||
{"roundScoreInPoints": 4500, "distanceInMeters": 120, "time": 15},
|
||||
{"roundScoreInPoints": 3800, "distanceInMeters": 100, "time": 20},
|
||||
{"roundScoreInPoints": 4900, "distanceInMeters": 100, "time": 25},
|
||||
{"roundScoreInPoints": 5000, "distanceInMeters": 100, "time": 35},
|
||||
]
|
||||
},
|
||||
"state": "finished",
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_stats_data():
|
||||
"""Standard user stats response data."""
|
||||
return {
|
||||
"games": 100,
|
||||
"totalRounds": 500,
|
||||
"score": 2250000,
|
||||
"perfectGames": 10,
|
||||
"winRate": 0.65,
|
||||
"bestStreak": 25,
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_season_stats_data():
|
||||
"""Standard season stats response data."""
|
||||
return {
|
||||
"id": "season-2024-1",
|
||||
"name": "Season 1 2024",
|
||||
"position": 150,
|
||||
"elo": 1850,
|
||||
"games": 45,
|
||||
"wins": 30,
|
||||
"tier": "Gold",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue