sorry, if I am duplicating previous topic on this, but I could not find one.
Based on my understanding this is how one setup and run tests which are in tests directory:
cd tests
ln -s ../fastai ./
python -m pytest -v test_layer_optimizer.py
Also, from guide: https://github.com/fastai/fastai/blob/master/docs/testing.adoc#testing-patterns
Do not use mock or fake objects.
This does not apply to mocking data, tensors, variables for input - right?
is that correct @mcskinner?