Skip to content
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

aio_test fail: fixture 'event_loop' not found #56

Open
BorjaEst opened this issue Mar 31, 2022 · 2 comments
Open

aio_test fail: fixture 'event_loop' not found #56

BorjaEst opened this issue Mar 31, 2022 · 2 comments

Comments

@BorjaEst
Copy link
Contributor

Tests for aio are failing.

$ pytest
...
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator0-401-kwargs0]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator0-401-kwargs1]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator0-200-kwargs2]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator1-401-kwargs0]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator1-401-kwargs1]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator1-200-kwargs2]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator2-401-kwargs0]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator2-401-kwargs1]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator2-200-kwargs2]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator3-401-kwargs0]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator3-401-kwargs1]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator3-200-kwargs2]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator4-401-kwargs0]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator4-401-kwargs1]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator4-200-kwargs2]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator5-401-kwargs0]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator5-401-kwargs1]
ERROR flaat/aio/aio_test.py::test_decorator[pyloop-decorator5-200-kwargs2]
ERROR flaat/aio/overrides_test.py::test_env_override_authentication[pyloop]
ERROR flaat/aio/overrides_test.py::test_env_override_authorization[pyloop]
ERROR flaat/aio/overrides_test.py::test_env_override_authorization_without_user[pyloop]

Basically I get this error:

  @pytest.fixture
  def cli(event_loop, aiohttp_client, app):
E       fixture 'event_loop' not found

However, tests are ok when I run tox.
Am I missing something when running the tests?

@dianagudu
Copy link
Contributor

Did you install the test requirements?

pip install -r test-requirements.txt

@BorjaEst
Copy link
Contributor Author

Indeed it is something related to dependencies, thanks for the tip.
From a "clean" installation, it shows no problem, the issues start when I have versions from other packages which are not compatible.

I am going to publish my requirements info so we can track in the future the versions of this conflict:

Requirement already satisfied: aarc-entitlement==1.* in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (1.0.5)
Requirement already satisfied: cachetools==5.* in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (5.0.0)
Requirement already satisfied: configargparse==1.* in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (1.5.2)
Requirement already satisfied: humanfriendly==10.* in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from -r requirements.txt (line 4)) (10.0)
Requirement already satisfied: liboidcagent==0.* in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from -r requirements.txt (line 5)) (0.4.0)
Requirement already satisfied: requests==2.* in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from -r requirements.txt (line 6)) (2.26.0)
Requirement already satisfied: pyjwt[crypto]==2.* in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from -r requirements.txt (line 7)) (2.1.0)
Requirement already satisfied: regex in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from aarc-entitlement==1.*->-r requirements.txt (line 1)) (2021.9.24)
Requirement already satisfied: future in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from liboidcagent==0.*->-r requirements.txt (line 5)) (0.18.2)
Requirement already satisfied: PyNaCl>=1.2.0 in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from liboidcagent==0.*->-r requirements.txt (line 5)) (1.4.0)
Requirement already satisfied: cryptography<4.0.0,>=3.3.1 in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from pyjwt[crypto]==2.*->-r requirements.txt (line 7)) (3.4.8)
Requirement already satisfied: charset-normalizer~=2.0.0 in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from requests==2.*->-r requirements.txt (line 6)) (2.0.6)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from requests==2.*->-r requirements.txt (line 6)) (1.26.7)
Requirement already satisfied: idna<4,>=2.5 in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from requests==2.*->-r requirements.txt (line 6)) (3.2)
Requirement already satisfied: certifi>=2017.4.17 in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from requests==2.*->-r requirements.txt (line 6)) (2021.5.30)
Requirement already satisfied: cffi>=1.12 in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from cryptography<4.0.0,>=3.3.1->pyjwt[crypto]==2.*->-r requirements.txt (line 7)) (1.14.6)
Requirement already satisfied: pycparser in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from cffi>=1.12->cryptography<4.0.0,>=3.3.1->pyjwt[crypto]==2.*->-r requirements.txt (line 7)) (2.20)
Requirement already satisfied: six in /home/borja/miniconda3/envs/flaat/lib/python3.8/site-packages (from PyNaCl>=1.2.0->liboidcagent==0.*->-r requirements.txt (line 5)) (1.16.0)

I see it should support (from tox) versions py37,py38,py39,py310.
Probably we should be more stricts on the versions allowed at "requirements.txt"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants