Files
clever-spotify/test_spotify.py
2024-11-14 10:14:57 +01:00

16 lines
526 B
Python

#!/usr/bin/env python3
import unittest
from spotify import authentify
class TestMathUtils(unittest.TestCase):
"""Teste l'authentifciation"""
def test_authentify(self):
refapi = 0 # To finish
scope = "user-library-read playlist-read-private playlist-modify-private"
client_id="1ad3f973e5924940bec0bcbf1adf7475"
client_secret="e0601efe11ee4e31b27b255c06d70a38"
self.assertEqual(authentify(client_id, client_secret, scope), refapi)
if __name__ == '__main__':
unittest.main()