Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_gp_kernel error "fixture 'mocker' not found" #214

Closed
elcorto opened this issue Aug 2, 2024 · 3 comments
Closed

test_gp_kernel error "fixture 'mocker' not found" #214

elcorto opened this issue Aug 2, 2024 · 3 comments

Comments

@elcorto
Copy link
Contributor

elcorto commented Aug 2, 2024

Running the tests for current main (508843d), I found this:

$ python -u -m pytest -k test_gp_kernel
[...]
  def test_gp_kernel(
E       fixture 'mocker' not found
>       available fixtures: ...
[...]
ERROR tests/test_functional_laplace_unit.py::test_gp_kernel[kernel_batch-jacobians0-jacobians_20-expected_full_kernel0-expected_block_diagonal_kernel0]
ERROR tests/test_functional_laplace_unit.py::test_gp_kernel[kernel_star-jacobians1-jacobians_21-expected_full_kernel1-expected_block_diagonal_kernel1]
ERROR tests/test_functional_laplace_unit.py::test_gp_kernel[kernel_batch_star-jacobians2-jacobians_22-expected_full_kernel2-expected_block_diagonal_kernel2]
@Ludvins
Copy link
Contributor

Ludvins commented Aug 3, 2024

This is my fault, I forgot to add pytest-mock package to the setup file. I can make a PR later today/tomorrow fixing this. To make the pytest work you only need to install pytest-mock via pip.

@elcorto
Copy link
Contributor Author

elcorto commented Aug 4, 2024

Thanks & no rush :) I was wondering why the CI didn't choke on that, but it installs pytest-mock, so it only shows when running tests locally. In the CI, you could do pip install -e ".[tests]" once pytest-mock is in setup.cfg.

@wiseodd
Copy link
Collaborator

wiseodd commented Aug 5, 2024

Fixed #215

@wiseodd wiseodd closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants