1
0
personal-data/test/test_psnprofiles.py
2024-05-09 16:59:46 +02:00

16 lines
510 B
Python

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