fixed tests

This commit is contained in:
zurdi
2023-08-09 03:18:20 +02:00
parent e45221b6d0
commit a7ad8580dc

View File

@@ -1,6 +1,5 @@
import pytest
from urllib.parse import urlparse
from config import DEFAULT_URL_COVER_S
from handler.igdb_handler import IGDBHandler
@@ -33,7 +32,7 @@ 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"] == DEFAULT_URL_COVER_S
assert rom["url_cover"] == ""
assert not rom["url_screenshots"]
@@ -44,7 +43,7 @@ def test_get_ps2_opl_rom():
assert rom["r_slug"] == ""
assert rom["r_name"] == "WWE Smack"
assert not rom["summary"]
assert rom["url_cover"] == DEFAULT_URL_COVER_S
assert rom["url_cover"] == ""
assert not rom["url_screenshots"]
rom = igdbh.get_rom("SLUS_210.60.WWE Smack.iso", 8)