I'd like to do tests using pytest-mock. I have already run the pip install pytest-mock command and installed it, but when I run the test below, pytest can not find the fixture. What can it be?
import pytest
def test_unix_fs(mocker):
mocker.patch('os.remove')
UnixFS.rm('file')
os.remove.assert_called_once_with('file')
def test_unix_fs (mocker): E fixture 'mocker' not found
available fixtures: cache, capfd, capsys, doctest_namespace, get_attribute, monkeypatch, pytestconfig, record_xml_property, recwarn, tmpdir, tmpdir_factory use 'pytest --fixtures [testpath]' for help on them.
pytest-mock website: link