Skip to content

How to test? fixture 'app' not found error #62

@apteryks

Description

@apteryks

Hi,

I'm trying to run the test suite, and have all the test dependencies listed in

test = [
, yet:

============================= test session starts ==============================
platform linux -- Python 3.11.11, pytest-8.4.1, pluggy-1.6.0 -- /gnu/store/v76lvm9985mj5h3kwrkif7gnqv3q30ck-python-wrapper-3.11.11/bin/python
cachedir: .pytest_cache
hypothesis profile 'default'
rootdir: /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1
configfile: pyproject.toml
plugins: hypothesis-6.135.26, cov-6.0.0, regressions-2.7.0, datadir-1.7.2
collecting ... collected 9 items

tests/test_build.py::test_video_latex ERROR                              [ 11%]
tests/test_build.py::test_video ERROR                                    [ 22%]
tests/test_build.py::test_video_options ERROR                            [ 33%]
tests/test_build.py::test_wrong_format ERROR                             [ 44%]
tests/test_build.py::test_wrong_height ERROR                             [ 55%]
tests/test_build.py::test_wrong_width ERROR                              [ 66%]
tests/test_build.py::test_wrong_preload ERROR                            [ 77%]
tests/test_build.py::test_wrong_controlslist ERROR                       [ 88%]
tests/test_build.py::test_video_force_secondary ERROR                    [100%]

==================================== ERRORS ====================================
______________________ ERROR at setup of test_video_latex ______________________
file /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py, line 9
  @pytest.mark.sphinx("latex", testroot="video")
  def test_video_latex(app, status, warning, file_regression):
E       fixture 'app' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, cov, data_regression, datadir, dataframe_regression, doctest_namespace, file_regression, image_regression, lazy_datadir, monkeypatch, ndarrays_regression, no_cover, num_regression, original_datadir, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:9
_________________________ ERROR at setup of test_video _________________________
file /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py, line 17
  @pytest.mark.sphinx(testroot="video")
  def test_video(app, status, warning, file_regression):
E       fixture 'app' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, cov, data_regression, datadir, dataframe_regression, doctest_namespace, file_regression, image_regression, lazy_datadir, monkeypatch, ndarrays_regression, no_cover, num_regression, original_datadir, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:17
_____________________ ERROR at setup of test_video_options _____________________
file /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py, line 28
  @pytest.mark.sphinx(testroot="video")
  def test_video_options(app, status, warning, file_regression):
E       fixture 'app' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, cov, data_regression, datadir, dataframe_regression, doctest_namespace, file_regression, image_regression, lazy_datadir, monkeypatch, ndarrays_regression, no_cover, num_regression, original_datadir, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:28
_____________________ ERROR at setup of test_wrong_format ______________________
file /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py, line 39
  @pytest.mark.sphinx(testroot="video-warnings")
  def test_wrong_format(app, status, warning, file_regression):
E       fixture 'app' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, cov, data_regression, datadir, dataframe_regression, doctest_namespace, file_regression, image_regression, lazy_datadir, monkeypatch, ndarrays_regression, no_cover, num_regression, original_datadir, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:39
_____________________ ERROR at setup of test_wrong_height ______________________
file /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py, line 56
  @pytest.mark.sphinx(testroot="video-warnings")
  def test_wrong_height(app, status, warning, file_regression):
E       fixture 'app' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, cov, data_regression, datadir, dataframe_regression, doctest_namespace, file_regression, image_regression, lazy_datadir, monkeypatch, ndarrays_regression, no_cover, num_regression, original_datadir, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:56
______________________ ERROR at setup of test_wrong_width ______________________
file /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py, line 68
  @pytest.mark.sphinx(testroot="video-warnings")
  def test_wrong_width(app, status, warning, file_regression):
E       fixture 'app' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, cov, data_regression, datadir, dataframe_regression, doctest_namespace, file_regression, image_regression, lazy_datadir, monkeypatch, ndarrays_regression, no_cover, num_regression, original_datadir, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:68
_____________________ ERROR at setup of test_wrong_preload _____________________
file /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py, line 80
  @pytest.mark.sphinx(testroot="video-warnings")
  def test_wrong_preload(app, status, warning, file_regression):
E       fixture 'app' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, cov, data_regression, datadir, dataframe_regression, doctest_namespace, file_regression, image_regression, lazy_datadir, monkeypatch, ndarrays_regression, no_cover, num_regression, original_datadir, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:80
__________________ ERROR at setup of test_wrong_controlslist ___________________
file /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py, line 92
  @pytest.mark.sphinx(testroot="video-warnings")
  def test_wrong_controlslist(app, status, warning, file_regression):
E       fixture 'app' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, cov, data_regression, datadir, dataframe_regression, doctest_namespace, file_regression, image_regression, lazy_datadir, monkeypatch, ndarrays_regression, no_cover, num_regression, original_datadir, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:92
_________________ ERROR at setup of test_video_force_secondary _________________
file /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py, line 104
  @pytest.mark.sphinx(testroot="video-secondary")
  def test_video_force_secondary(app, status, warning, file_regression):
E       fixture 'app' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, capteesys, cov, data_regression, datadir, dataframe_regression, doctest_namespace, file_regression, image_regression, lazy_datadir, monkeypatch, ndarrays_regression, no_cover, num_regression, original_datadir, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:104
=============================== warnings summary ===============================
tests/test_build.py:9
  /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:9: PytestUnknownMarkWarning: Unknown pytest.mark.sphinx - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.sphinx("latex", testroot="video")

tests/test_build.py:17
  /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:17: PytestUnknownMarkWarning: Unknown pytest.mark.sphinx - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.sphinx(testroot="video")

tests/test_build.py:28
  /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:28: PytestUnknownMarkWarning: Unknown pytest.mark.sphinx - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.sphinx(testroot="video")

tests/test_build.py:39
  /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:39: PytestUnknownMarkWarning: Unknown pytest.mark.sphinx - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.sphinx(testroot="video-warnings")

tests/test_build.py:56
  /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:56: PytestUnknownMarkWarning: Unknown pytest.mark.sphinx - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.sphinx(testroot="video-warnings")

tests/test_build.py:68
  /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:68: PytestUnknownMarkWarning: Unknown pytest.mark.sphinx - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.sphinx(testroot="video-warnings")

tests/test_build.py:80
  /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:80: PytestUnknownMarkWarning: Unknown pytest.mark.sphinx - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.sphinx(testroot="video-warnings")

tests/test_build.py:92
  /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:92: PytestUnknownMarkWarning: Unknown pytest.mark.sphinx - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.sphinx(testroot="video-warnings")

tests/test_build.py:104
  /tmp/guix-build-python-sphinxcontrib-video-0.4.1.drv-0/sphinxcontrib_video-0.4.1/tests/test_build.py:104: PytestUnknownMarkWarning: Unknown pytest.mark.sphinx - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.sphinx(testroot="video-secondary")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test_build.py::test_video_latex
ERROR tests/test_build.py::test_video
ERROR tests/test_build.py::test_video_options
ERROR tests/test_build.py::test_wrong_format
ERROR tests/test_build.py::test_wrong_height
ERROR tests/test_build.py::test_wrong_width
ERROR tests/test_build.py::test_wrong_preload
ERROR tests/test_build.py::test_wrong_controlslist
ERROR tests/test_build.py::test_video_force_secondary
======================== 9 warnings, 9 errors in 0.33s =========================

What am I missing?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions