First functions
This commit is contained in:
16
test_spotify.py
Normal file
16
test_spotify.py
Normal 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()
|
||||
Reference in New Issue
Block a user