You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes fixture 'self' not found on the TestCase class:
$ pytest test.py
================================================== test session starts ===================================================
platform linux -- Python 3.7.3, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
rootdir: /home/gabejoseph/experiments/pytest-cases
plugins: cases-1.11.4
collected 5 items
test.py ....E [100%]
========================================================= ERRORS =========================================================
______________________________________ ERROR at setup of TestCase.test_thing_cases _______________________________________
file /home/gabejoseph/experiments/pytest-cases/test.py, line 23: source code not available
E fixture 'self' not found
> available fixtures: bar, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, foo, monkeypat
ch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, test_thing_arg, test_thing_cas
es_arg, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]'forhelp on them.
/home/gabejoseph/experiments/pytest-cases/test.py:23
==================================================== warnings summary ====================================================
/home/gabejoseph/.local/share/virtualenvs/pytest-cases-QHs3Ehpk/lib/python3.7/site-packages/pytest_cases/plugin.py:129
/home/gabejoseph/.local/share/virtualenvs/pytest-cases-QHs3Ehpk/lib/python3.7/site-packages/pytest_cases/plugin.py:129: U
serWarning: WARNING the new order is not taken into account !!
warn("WARNING the new order is not taken into account !!")
-- Docs: https://docs.pytest.org/en/latest/warnings.html
========================================= 4 passed, 1 warnings, 1 error in 0.03s =========================================
Notice that with the test_thing_pytest function, normal pytest.mark.parametrize handles self just fine.
Bad luck : the travis CI system has global issues syncing with github, and in particular it can not run "tagged" builds, which I use for pypi releases.
This causes
fixture 'self' not found
on theTestCase
class:Notice that with the
test_thing_pytest
function, normalpytest.mark.parametrize
handlesself
just fine.Pipfile:
The text was updated successfully, but these errors were encountered: