From 30f4ea1c19e50195a0b0804b7a74660b4cd4172e Mon Sep 17 00:00:00 2001 From: zurdi Date: Wed, 9 Aug 2023 01:28:46 +0200 Subject: [PATCH] tests fixed --- backend/handler/tests/test_igdb_handler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/handler/tests/test_igdb_handler.py b/backend/handler/tests/test_igdb_handler.py index 813cc04d7..faf3bc5e9 100644 --- a/backend/handler/tests/test_igdb_handler.py +++ b/backend/handler/tests/test_igdb_handler.py @@ -1,5 +1,6 @@ import pytest from urllib.parse import urlparse +from config import DEFAULT_URL_COVER_S from handler.igdb_handler import IGDBHandler @@ -32,7 +33,7 @@ def test_get_rom(): assert rom["r_slug"] == "" assert rom["r_name"] == "Not a real game title" assert not rom["summary"] - assert not rom["url_cover"] + assert rom["url_cover"] == DEFAULT_URL_COVER_S assert not rom["url_screenshots"] @@ -43,7 +44,7 @@ def test_get_ps2_opl_rom(): assert rom["r_slug"] == "" assert rom["r_name"] == "WWE Smack" assert not rom["summary"] - assert not rom["url_cover"] + assert rom["url_cover"] == DEFAULT_URL_COVER_S assert not rom["url_screenshots"] rom = igdbh.get_rom("SLUS_210.60.WWE Smack.iso", 8)