Skip to content

Commit

Permalink
fixed igdb handler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Nov 3, 2023
1 parent 66c1e3c commit 547dfe6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/handler/tests/test_igdb_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
from urllib.parse import urlparse

from config import DEFAULT_URL_COVER_L
from handler.igdb_handler import IGDBHandler

igdbh = IGDBHandler()
Expand Down Expand Up @@ -32,7 +33,7 @@ async def test_get_rom():
assert rom["r_slug"] == ""
assert rom["r_name"] == "Not a real game title"
assert not rom["summary"]
assert rom["url_cover"] == ""
assert rom["url_cover"] == DEFAULT_URL_COVER_L
assert not rom["url_screenshots"]


Expand All @@ -43,7 +44,7 @@ async def test_get_ps2_opl_rom():
assert rom["r_slug"] == ""
assert rom["r_name"] == "WWE Smack"
assert not rom["summary"]
assert rom["url_cover"] == ""
assert rom["url_cover"] == DEFAULT_URL_COVER_L
assert not rom["url_screenshots"]

rom = await igdbh.get_rom("SLUS_210.60.WWE Smack.iso", 8)
Expand Down

0 comments on commit 547dfe6

Please sign in to comment.