Skip to content
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

Closed
tasn opened this issue Aug 5, 2014 · 5 comments
Closed

Add a way to test the send_message class of functions #16

tasn opened this issue Aug 5, 2014 · 5 comments

Comments

@tasn
Copy link
Contributor

tasn commented Aug 5, 2014

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.

@tasn
Copy link
Contributor Author

tasn commented Aug 27, 2014

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.

@bogdal
Copy link
Owner

bogdal commented Sep 1, 2014

Right now this package has 100% test coverage. If you want to test some particular scenario feel free to create PR.

@bogdal bogdal closed this as completed Sep 1, 2014
@tasn
Copy link
Contributor Author

tasn commented Sep 1, 2014

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
ticket as a reminder to what's missing and that someone (possibly me,
possibly you, possibly someone else) should fix.

Tom.
On 1 Sep 2014 23:41, "Adam Bogdał" notifications@github.com wrote:

Right now this package has 100% test coverage. If you want to test some
particular scenario feel free to create PR.


Reply to this email directly or view it on GitHub
#16 (comment).

@bogdal
Copy link
Owner

bogdal commented Sep 1, 2014

Really? Please check again tests.py file.

@tasn
Copy link
Contributor Author

tasn commented Sep 2, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants