Skip to content

Commit 7492add

Browse files
committed
Enable tests
1 parent b7f85bb commit 7492add

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

tests/test_scrobble.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ def test_scrobbler_payload_excludes_app_metadata():
6464
print("payload:", payload)
6565
assert isinstance(payload, dict)
6666

67-
# assert payload['progress'] == 42.0
68-
# assert 'app_version' not in payload
69-
# assert 'app_date' not in payload
70-
# assert 'date' not in payload
67+
# 3.7
68+
# payload.type: <class 'dict'>
69+
# payload: {'progress': 42.0, 'movie': {'title': 'Guardians of the Galaxy', 'year': 2014, 'ids': {'imdb': 'tt1104001', 'slug': 'guardians-of-the-galaxy-2014', 'tmdb': 20526, 'trakt': 343}}}
70+
71+
# 3.9
72+
# payload.type: <class 'dict'>
73+
# payload: {'progress': 42.0, 'movie': {'title': 'Guardians of the Galaxy', 'year': 2014, 'ids': {'imdb': 'tt1104001', 'slug': 'guardians-of-the-galaxy-2014', 'tmdb': 20526, 'trakt': 343}}}
74+
# PASSED
75+
assert payload['progress'] == 42.0
76+
assert 'app_version' not in payload
77+
assert 'app_date' not in payload
78+
assert 'date' not in payload

0 commit comments

Comments
 (0)