We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From within a container, python 3.10.13
pytest test_api_generator.py ================================ test session starts ================================ platform linux -- Python 3.10.13, pytest-7.4.3, pluggy-1.3.0 rootdir: /usr/src/swarm_cloud/tests plugins: time-machine-2.13.0, anyio-3.7.1 collected 18 items test_api_generator.py F...F...EF.F.F...F [100%] ===================================== FAILURES ====================================== ___________________________ test_generate_api_key_default ___________________________ def test_generate_api_key_default(): api_key = generate_api_key() assert isinstance(api_key, str) assert api_key.startswith("sk-") > assert len(api_key) == 52 # Prefix (3) + 50 random characters E AssertionError: assert 53 == 52 E + where 53 = len('sk-Q1tO3ZJiS64yZ19CtVrGpzhaG5uz28U5q7la4GFzTwUCxnGakD') test_api_generator.py:13: AssertionError
The fix is:
def test_generate_api_key_default(): ... assert len(api_key) == 53 # Prefix (3) + 50 random characters
Replace 52 with 53 in the key length assertion.
The text was updated successfully, but these errors were encountered:
Stale issue message
Sorry, something went wrong.
kyegomez
No branches or pull requests
From within a container, python 3.10.13
The fix is:
Replace 52 with 53 in the key length assertion.
Upvote & Fund
The text was updated successfully, but these errors were encountered: