*Adds unit tests for the /new_data/wakeword endpoint. Figuring out how to unittest this in Python was a little strange, but now that this is done, the other endpoints should come much easier.
Changed FormatterValidatorError to WakeWordValidatorError in flask app
Adjusts unit tests to mock global variables rather than the constructors
Type of change (pick-one)
[x] New tests
How Has This Been Tested?
sh run_tests.sh
We've hit a pretty nice goal: 60% overall coverage!
Checklist (check-all-before-merge)
formatting help: - [x] means "checked' and - [ ] means "unchecked"
What's New?
*Adds unit tests for the /new_data/wakeword endpoint. Figuring out how to unittest this in Python was a little strange, but now that this is done, the other endpoints should come much easier.
Type of change (pick-one)
How Has This Been Tested?
sh run_tests.sh
We've hit a pretty nice goal: 60% overall coverage!
Checklist (check-all-before-merge)
formatting help:
- [x]
means "checked' and- [ ]
means "unchecked"[x] I documented my code according to the Google Python Style Guide
[ ] I ran
./build_docs.sh
and the docs look fine[ ] I ran
./type_check.sh
and got no errors[ ] I ran
./format.sh
because it automatically cleans my code for me π[ ] I ran
./lint.sh
to check for what "format" missed[x] I added my tests to the
/tests
directory[x] I ran
./run_tests.sh
and all the tests pass