Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
============================================================================================================== FAILURES ===============================================================================================================
______________________________________________________________________________________ TestTimescaleListenStore.test_aaa_get_total_listen_count _______________________________________________________________________________________
self = <listenbrainz.listenstore.tests.test_timescalelistenstore.TestTimescaleListenStore testMethod=test_aaa_get_total_listen_count>
def test_aaa_get_total_listen_count(self):
listen_count = self.logstore.get_total_listen_count(False)
self.assertEqual(0, listen_count)
count = self._create_test_data(self.testuser_name)
sleep(1)
listen_count = self.logstore.get_total_listen_count(False)
self.assertEqual(count, listen_count)
testuser2 = db_user.get_or_create(11, 'testuser2')
testuser_name2 = testuser2['musicbrainz_id']
count = self._create_test_data(testuser_name2)
sleep(2)
listen_count = self.logstore.get_total_listen_count(False)
> self.assertEqual(count * 2, listen_count)
E AssertionError: 10 != 5
listenbrainz/listenstore/tests/test_timescalelistenstore.py:104: AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.