Good morning! I'm trying test my connector and jus...
# connector-development
w
Good morning! I'm trying test my connector and just running the existing tests using the documented command,
python -m pytest -s unit_tests
from the venv. I'm running into an error with the generated patch_base_class in all the generated tests:
Copy code
E       fixture 'mocker' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, patch_base_class, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.
Any tips to resolve?
a
Hey @Will Watkinson could you please double check that all the test dependencies are properly installed? You should have the
"pytest-mock"
package which provides the
mocker
fixture.
w
I ran install requirements.txt and install -e ".[dev]", but looking at the graph
pytest-mock
isn't there
installing that dependency specifically, though, seems to have resolved it