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