I have a django app that uses elastic search. I want to have 100% code test coverage so I need to test API calls to elasticsearch (which is "installed" locally).
So my question is this: is it better to mock whole elasticsearch or should I run elasticserver and check the results?
IMO It is better to mock elasticsearch and just check the python code (test if everything was called with the correct params).