16 lines
526 B
Python
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() |