Closed florianpilz closed 7 years ago
Hi, can you please sign our contribution agreement if you're still interested in having us integrate this into our library? http://docs.urbanairship.com/contribution-agreement/
This enhancement has been released in version 2.0.0 - thank you!
👍
Currently there is no support for writing unit tests using the library. Since I do not need to send real pushes during unit tests, mocking
urbanairship.common.PUSH_URL
to send notifications tohttps://go.urbanairship.com/api/push/validate/
would be sufficient to make sure the payload is alright.However, the response for
validate
is just{"ok":true}
, i.e. data does not containpush_ids
. Thereforeurbanairship.push.core.Push.send
will raise inside the logging statement. This PR makes the logging more robust, so mockingurbanairship.common.PUSH_URL
withhttps://go.urbanairship.com/api/push/validate/
succeeds and can be used for testing.