Skip to content

Fixture 'allclose' not found #12

Description

@npow

I keep getting fixture 'allclose' not found when running the test example. Do I need to add something to pytest.ini or import allclose somewhere?

def test_feature(allclose):
    assert allclose(test_array, target_array)
E       fixture 'allclose' not found
>       available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_mocker, cov, dash_br, dash_duo, dash_process_server, dash_thread_server, dashjl, dashjl_server, dashr, dashr_server, diskcache_manager, doctest_namespace, hydra_restore_singletons, hydra_sweep_runner, hydra_task_runner, mocker, module_mocker, monkeypatch, no_cover, package_mocker, pytestconfig, random_training_data, record_property, record_testsuite_property, record_xml_attribute, recwarn, requests_mock, row, session_mocker, snapshot, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, worker_id
>       use 'pytest --fixtures [testpath]' for help on them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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