1
0
personal-data/test/test_psnprofiles.py

16 lines
510 B
Python
Raw 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'),
]
@pytest.mark.parametrize('id, url', URLS_AND_IDS)
def test_game_psnprofiles_id_from_url(id, url):
assert psnprofiles.game_psnprofiles_id_from_url(url) == id