{"body":"test_1           | =================================== FAILURES ===================================\ntest_1           | ____________ RecommendTestClass.test_check_for_ratings_beyond_range ____________\ntest_1           |\ntest_1           | self = <listenbrainz_spark.recommendations.recording.tests.test_recommend.RecommendTestClass testMethod=test_check_for_ratings_beyond_range>\ntest_1           | mock_logger = <MagicMock name='info' id='140601019960176'>\ntest_1           |\ntest_1           |     @patch('logging.info')\ntest_1           |     def test_check_for_ratings_beyond_range(self, mock_logger):\ntest_1           |         top_artist_rec_df = self.get_top_artist_rec_df()\ntest_1           |         similar_artist_rec_df = self.get_similar_artist_rec_df()\ntest_1           |\ntest_1           |         recommend.check_for_ratings_beyond_range(top_artist_rec_df, similar_artist_rec_df)\ntest_1           |\ntest_1           |         mock_logger.assert_has_calls([\ntest_1           |             call('Some ratings are greater than 1 \\nMax rating: 1.8'),\ntest_1           | >           call('Some ratings are less than -1 \\nMin rating: -2.8')\ntest_1           |         ])\ntest_1           |\ntest_1           | listenbrainz_spark/recommendations/recording/tests/test_recommend.py:408:\ntest_1           | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\ntest_1           |\ntest_1           | self = <MagicMock name='info' id='140601019960176'>\ntest_1           | calls = [call('Some ratings are greater than 1 \\nMax rating: 1.8'), call('Some ratings are less than -1 \\nMin rating: -2.8')]\ntest_1           | any_order = False\ntest_1           |\ntest_1           |     def assert_has_calls(self, calls, any_order=False):\ntest_1           |         \"\"\"assert the mock has been called with the specified calls.\ntest_1           |         The `mock_calls` list is checked for the calls.\ntest_1           |\ntest_1           |         If `any_order` is False (the default) then the calls must be\ntest_1           |         sequential. There can be extra calls before or after the\ntest_1           |         specified calls.\ntest_1           |\ntest_1           |         If `any_order` is True then the calls can be in any order, but\ntest_1           |         they must all appear in `mock_calls`.\"\"\"\ntest_1           |         expected = [self._call_matcher(c) for c in calls]\ntest_1           |         cause = expected if isinstance(expected, Exception) else None\ntest_1           |         all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls)\ntest_1           |         if not any_order:\ntest_1           |             if expected not in all_calls:\ntest_1           |                 raise AssertionError(\ntest_1           |                     'Calls not found.\\nExpected: %r\\n'\ntest_1           |                     'Actual: %r' % (_CallList(calls), self.mock_calls)\ntest_1           | >               ) from cause\ntest_1           | E               AssertionError: Calls not found.\ntest_1           | E               Expected: [call('Some ratings are greater than 1 \\nMax rating: 1.8'),\ntest_1           | E                call('Some ratings are less than -1 \\nMin rating: -2.8')]\ntest_1           | E               Actual: []\ntest_1           |\ntest_1           | /usr/local/lib/python3.6/unittest/mock.py:846: AssertionError\ntest_1           | ----------------------------- Captured stderr call -----------------------------","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/Fj3SZ48N","modified":1619005991,"id":"Fj3SZ48N","size":3481,"lines":51,"own_paste":false,"theme":"","date":1619005991}