Skip to content

Instantly share code, notes, and snippets.

@ferbncode
Created August 3, 2017 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferbncode/2a3f3967015747c45efedfc20b7f3608 to your computer and use it in GitHub Desktop.
Save ferbncode/2a3f3967015747c45efedfc20b7f3608 to your computer and use it in GitHub Desktop.
Cache needs to be initialized.
================================================================================= FAILURES ==================================================================================
_______________________________________________________________________ PlaceTestCase.test_get_by_id ________________________________________________________________________
self = <critiquebrainz.frontend.external.musicbrainz_db.tests.place_test.PlaceTestCase testMethod=test_get_by_id>
def test_get_by_id(self):
self.place_query.return_value = [place_suisto]
> place = mb_place.get_place_by_id('d71ffe38-5eaf-426b-9a2e-e1f21bc84609')
place_test.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../place.py:26: in get_place_by_id
place = cache.get(key)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (b'd71ffe38-5eaf-426b-9a2e-e1f21bc84609',), kwargs = {}
@wraps(f)
def decorated(*args, **kwargs):
if not _r:
> raise RuntimeError("Cache module needs to be initialized before "
"use! See documentation for more info.")
E RuntimeError: Cache module needs to be initialized before use! See documentation for more info.
/usr/local/lib/python3.6/site-packages/brainzutils/cache.py:87: RuntimeError
==================================================================== 1 failed, 2 passed in 4.27 seconds =====================================================================
root@9fee5f7050ad:/code/critiquebrainz/frontend/external/musicbrainz_db/tests#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment