Added more tests

This commit is contained in:
Mawoka
2022-05-06 22:36:10 +02:00
parent 61eb56f756
commit f1588550f3
2 changed files with 37 additions and 16 deletions
+2 -2
View File
@@ -115,9 +115,9 @@ async def check_if_captcha_enabled(game_pin: str):
return CheckIfCaptchaEnabledResponse(**{"enabled": True})
@router.get("/join/{game_pin}")
@router.get("/join/{game_pin}", deprecated=True)
async def get_game_id(game_pin: str):
redis_res = (await redis.get(f"game:{game_pin}")).decode()
redis_res = await redis.get(f"game:{game_pin}")
if redis_res is None:
raise HTTPException(status_code=404, detail="game not found")
else: