Closed JonnoFTW closed 8 years ago
So the fix looks great, and the test would also be great if it weren't using hitcpy
. I think your unit tests should be closer to the code under test. This whole test file would fit much better in the hitpy
repo, however. And once we set up CI, it will be running as an extra test.
If you want to write unit tests, I suggest you call the HTTP handler functions directly from your tests. This makes the assumption that the web framework you chose is setup properly.
I'm going to merge this and divert new work to new issues.
Fixes #26.
Fixed a bug where the server only used the current timestamp, instead of the provided one. Also updated the test client to use the new API client package.