bdk: fix unittests to stop saving metrics.
Our unittests are currently saving metrics to the local file database.
This was caused by a few things:
1. hit_store was not being stubbed out so the actual module was
used by tests.
2. StubHit.Hit.SendFields() wasn't returning a value, so send_hit()
would treat this as a failure and save the hit using the (real)
hit_store module.
This CL fixes both these issues, cutting test_runner.py time from 0.7s
to 0.1s (and preventing bogus hits being saved).
Bug: 27907286
Change-Id: I5dd2942216e847056af74799ee272c2684b6a6a9
Test: python test_runner.py
3 files changed