1
0
personal-data/test/test_psnprofiles.py

16 lines
560 B
Python
Raw Permalink Normal View History

2024-05-09 14:58:09 +00:00
import pytest
from personal_data.fetchers import psnprofiles
URLS_AND_IDS = [
(21045, '/trophies/21045-theatrhythm-final-bar-line'),
(21045, '/trophies/21045-theatrhythm-final-bar-line/'),
(21045, '/trophies/21045-theatrhythm-final-bar-line/HelloWorld'),
(21045, '/trophy/21045-theatrhythm-final-bar-line/19-seasoned-hunter'),
]
2024-10-25 20:09:27 +00:00
@pytest.mark.parametrize(('psnprofiles_id', 'url'), URLS_AND_IDS)
def test_game_psnprofiles_id_from_url(psnprofiles_id: int, url: str):
assert psnprofiles.game_psnprofiles_id_from_url(url) == psnprofiles_id