From def9b2414a2286ad32d62f3c5ca2cf3844abaa18 Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 11 Sep 2014 15:37:17 +0300 Subject: [PATCH] Fix chart tests that failed due to date ranges (take 2) --- .travis.yml | 1 + test_pylast.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c853ea3..8987743 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,3 +28,4 @@ matrix: allow_failures: - python: "3.4" - python: "pypy" + fast_finish: true diff --git a/test_pylast.py b/test_pylast.py index 0a1b8d9..0bd0f0b 100755 --- a/test_pylast.py +++ b/test_pylast.py @@ -1213,7 +1213,7 @@ class TestPyLast(unittest.TestCase): self.helper_dates_valid(dates) # Act/Assert - self.helper_get_assert_charts(tag, dates[-1]) + self.helper_get_assert_charts(tag, dates[-2]) def test_user_charts(self): # Arrange @@ -1222,7 +1222,7 @@ class TestPyLast(unittest.TestCase): self.helper_dates_valid(dates) # Act/Assert - self.helper_get_assert_charts(lastfm_user, dates[-1]) + self.helper_get_assert_charts(lastfm_user, dates[1]) def test_track_top_fans(self): # Arrange