Description
Thank you for pytest-trio! It looks like exactly what I'm looking for - in particular async fixtures. Unfortunately I haven't been able to get it to work at all in what I think should be the simplest and most obvious configuration.
On Debian or Ubuntu, I cannot find any configuration that allows the test to pass, following CHEATSHEET.rst
as documented. My steps are as follows, having first installed only python3
, virtualenv
and git
in a fresh container:
virtualenv -ppython3 venv
. venv/bin/activate
git clone git://github.com/python-trio/pytest-trio
cd pytest-trio
pip install -r test-requirements.txt
pytest pytest_trio
This works neither on Debian buster nor on Debian sid. I have also tried various other combinations of things, including Ubuntu, but cannot find any combination that works.
I found issue #66 so I tried using some previous versions of pytest, but nothing works. Although the error changes, I can't seem to find any version of pytest to use in which the test suite doesn't indicate that the pytest hook works at all.
The most helpful error message I can find is against pytest 4.4.2, which seems to be full of things like:
E fixture 'autojump_clock' not found
> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapsho
t, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespa
ce, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_xml_a
ttribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
Presumably this is something to do with pytest plugin integration?
The full test failure output against pytest 4.4.2 is attached.
test-failure.log
If you're doing something different that makes your tests pass, what is it please, and could you update CHEATSHEET.rst
to match?