Last.fm API broken but allow either yyyy-mm-dd or Unix timestamp
This commit is contained in:
parent
00b6c0a619
commit
666181df50
|
@ -72,10 +72,11 @@ class TestPyLastUser(PyLastTestCase):
|
|||
registered = user.get_registered()
|
||||
|
||||
# Assert
|
||||
# Last.fm API broken? Should be yyyy-mm-dd not Unix timestamp
|
||||
if int(registered):
|
||||
pytest.skip("Last.fm API is broken.")
|
||||
|
||||
# Last.fm API broken? Used to be yyyy-mm-dd not Unix timestamp
|
||||
self.assertEqual(registered, "1037793040")
|
||||
else:
|
||||
# Old way
|
||||
# Just check date because of timezones
|
||||
self.assertIn(u"2002-11-20 ", registered)
|
||||
|
||||
|
|
Loading…
Reference in a new issue