Closed isidroas closed 4 months ago
You need to set the env var GENIUS_REDIRECT_URI
to be able to run tests. I believe any valid URL would suffice. For example https://example.com/callback
.
It worked, thank you
export GENIUS_REDIRECT_URI=https://example.com/callback
$ python -m pytest tests/test_auth.py
================================ test session starts ================================
platform linux -- Python 3.10.12, pytest-8.0.1, pluggy-1.4.0
rootdir: /tmp/LyricsGenius
collected 6 items
tests/test_auth.py ...... [100%]
================================= 6 passed in 0.52s =================================
Closing
Maybe, another issue could be created to:
For test_auth.py I got this:
What is the correct value for
GENIUS_REDIRECT_URI
?I also noted that the Github CI is failing, but the reports are gone: https://github.com/johnwmillr/LyricsGenius/actions/runs/6388061122/job/17337302061