Finish refactor

This commit is contained in:
hugovk 2017-10-17 23:18:35 +03:00
parent 2edfc108d1
commit 5ba51c1e2c
10 changed files with 1381 additions and 1272 deletions

30
tests/test_pylast_library.py Executable file
View file

@ -0,0 +1,30 @@
#!/usr/bin/env python
"""
Integration (not unit) tests for pylast.py
"""
import unittest
import pylast
from .test_pylast import PyLastTestCase
class TestPyLastLibrary(PyLastTestCase):
def test_library_is_hashable(self):
# Arrange
library = pylast.Library(user=self.username, network=self.network)
# Act/Assert
self.helper_is_thing_hashable(library)
def test_cacheable_library(self):
# Arrange
library = pylast.Library(self.username, self.network)
# Act/Assert
self.helper_validate_cacheable(library, "get_artists")
if __name__ == '__main__':
unittest.main(failfast=True)