Replace unittest with pytest

This commit is contained in:
Hugo 2020-06-01 15:50:27 +03:00
parent 1160ee1513
commit aae4bb3693
10 changed files with 253 additions and 305 deletions

View file

@ -2,8 +2,6 @@
"""
Integration (not unit) tests for pylast.py
"""
import unittest
import pylast
from flaky import flaky
@ -26,7 +24,7 @@ class TestPyLastWithLibreFm(PyLastTestCase):
name = artist.get_name()
# Assert
self.assertEqual(name, "Radiohead")
assert name == "Radiohead"
def test_repr(self):
# Arrange
@ -40,7 +38,3 @@ class TestPyLastWithLibreFm(PyLastTestCase):
# Assert
self.assert_startswith(representation, "pylast.LibreFMNetwork(")
if __name__ == "__main__":
unittest.main(failfast=True)