From 8db87dddb4417c618eebce841c441a04e9c76632 Mon Sep 17 00:00:00 2001 From: Sebastian Schreck Date: Tue, 30 Jul 2019 12:27:36 +0200 Subject: [PATCH] line-too-long linting --- .../rottentomatoes/test_rottentomatoes_ratings_inserter.py | 6 ++++-- .../rottentomatoes/test_rottentomatoes_ratings_parser.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/unit/rottentomatoes/test_rottentomatoes_ratings_inserter.py b/tests/unit/rottentomatoes/test_rottentomatoes_ratings_inserter.py index b07f35f..adaedf5 100644 --- a/tests/unit/rottentomatoes/test_rottentomatoes_ratings_inserter.py +++ b/tests/unit/rottentomatoes/test_rottentomatoes_ratings_inserter.py @@ -22,9 +22,11 @@ def setUp(self): self.movie['tmdb'] = dict() self.movie['tmdb']['id'] = '550' self.movie['tmdb']['url'] = 'https://www.themoviedb.org/movie/550' - with open(os.path.join(TESTDATA_PATH, 'rottentomatoes', 'search_result.json'), encoding='UTF-8') as search_results: + with open(os.path.join(TESTDATA_PATH, 'rottentomatoes', 'search_result.json'), + encoding='UTF-8') as search_results: self.search_results = json.loads(search_results.read()) - with open(os.path.join(TESTDATA_PATH, 'rottentomatoes', 'search_result_tile.json'), encoding='UTF-8') as result_tile: + with open(os.path.join(TESTDATA_PATH, 'rottentomatoes', 'search_result_tile.json'), + encoding='UTF-8') as result_tile: self.search_result_tile_list = [json.loads(result_tile.read())] @patch('RatS.base.base_ratings_inserter.RatingsInserter.__init__') diff --git a/tests/unit/rottentomatoes/test_rottentomatoes_ratings_parser.py b/tests/unit/rottentomatoes/test_rottentomatoes_ratings_parser.py index e5a40b9..707d934 100644 --- a/tests/unit/rottentomatoes/test_rottentomatoes_ratings_parser.py +++ b/tests/unit/rottentomatoes/test_rottentomatoes_ratings_parser.py @@ -12,7 +12,8 @@ class RottenTomatoesRatingsParserTest(TestCase): def setUp(self): if not os.path.exists(os.path.join(TESTDATA_PATH, 'exports')): os.makedirs(os.path.join(TESTDATA_PATH, 'exports')) - with open(os.path.join(TESTDATA_PATH, 'rottentomatoes', 'my_ratings_last_page.json'), encoding='UTF-8') as my_ratings: + with open(os.path.join(TESTDATA_PATH, 'rottentomatoes', 'my_ratings_last_page.json'), + encoding='UTF-8') as my_ratings: self.my_ratings = json.loads(my_ratings.read()) @patch('RatS.base.base_ratings_parser.RatingsParser.__init__')