-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to test the send_message class of functions #16
Comments
Now that we have GCMMessage in an api, we probably need a way to be able to set an alternative GCMMessage api on objects/querysets. This will let us use mock api for testing purposes. It'd also be great to be able to set the GCMMessage of a device class. This will essentially let you do cool stuff like for example, adding iOS support to the same infra in a very simple and consistent manner without having to re-implement things. This essentially means you'd only have to re-implement post_send(), and the rest will remain the same (in the device). Including querysets (once fixed). Now it doesn't look or feel like a lot, but it can grow. |
Right now this package has 100% test coverage. If you want to test some particular scenario feel free to create PR. |
How is that possible if the send_message stuff aren't being tested? I might create one soon. I didn't open this ticket for you, I opened this Tom.
|
Really? Please check again tests.py file. |
You cheated! You added those after my last message before you closed it without saying you did and implying it was always there. :) Anyhow, very good, this is now solved. Thanks a lot. |
This project needs better test coverage in that section, more specifically, all of the handling on the server. Especially error handling, but even success verification.
The text was updated successfully, but these errors were encountered: