First functions

This commit is contained in:
Lucas
2024-11-14 10:14:57 +01:00
parent a4e264e255
commit 44bedf7253
8 changed files with 30737 additions and 13 deletions

16
test_spotify.py Normal file
View File

@@ -0,0 +1,16 @@
#!/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()