New issue
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
Some tests fail if all tests are run together #284
Comments
I think #279 has fixed the problem. Can you test with master code. |
@yan12125 if you can confirm that fixed the problem, I'll cherry pick the PR into maintain-0.15 code, then release a 0.15.2 version. |
Thanks for the pointer. On master (84ba75a), tests fail with different errors:
|
So, it is impossible to test them together. |
…test httpx; add workaround for an upstream issue [1] in check() [1] lepture/authlib#284 git-svn-id: file:///srv/repos/svn-community/svn@726103 9fca08f4-af9d-4005-b8df-a31f2cc04f65
…test httpx; add workaround for an upstream issue [1] in check() [1] lepture/authlib#284 git-svn-id: file:///srv/repos/svn-community/svn@726103 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Thanks for the explanation! I seperate those tests in the latest Arch Linux package. |
I don't see any reason why this should be a problem... just use https://docs.pytest.org/en/latest/monkeypatch.html to set the env var only in the tests that need it. |
Thanks for the hint. I tried a different approach at #286 as Django and Flask tests appear to use unittest infrastructure instead of the pytest one |
Describe the bug
Some tests in
tests/core/test_oauth2/test_rfc8414.py
andtests/core/test_oidc/test_discovery.py
fail if they are run with Django or Flask tests.Error Stacks
pytest logs
To Reproduce
Expected behavior
All tests pass
Environment:
Additional context
I'm interested in updating the python-authlib package for Arch Llinux for compatibility with newer httpx. That package runs all tests together [1], which worked for authlib 0.14.3.
Do you suggest that packagers for Linux distributions should test different parts separately like the official GitHub workflows [2] do?
[1] https://github.com/archlinux/svntogit-community/blob/2b480fcd73e2ef5fa6ad6d42bd2fdda8fa9a5606/trunk/PKGBUILD#L42
[2]
authlib/.github/workflows/python.yml
Lines 42 to 44 in 84ba75a
The text was updated successfully, but these errors were encountered: