Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Feature/issue 509 #513

Merged
merged 3 commits into from
Jul 13, 2016
Merged

Feature/issue 509 #513

merged 3 commits into from
Jul 13, 2016

Conversation

bbangert
Copy link
Member

@bbangert bbangert commented Jul 13, 2016

Fixes a few bugs in existing tests that were using self.assert which failed to verify the value.

Fixes issue with the wpush endpoint not being registered in main.py for autoendpoint.

Add's the test_web_webpush which should've been included with the prior webpush endpoint refactor.

The last commit add's a endpoint_diagnostic CLI that will resolve an endpoint to its
UAID/CHID and router record info along with applicable valid channels.

Closes #509

@jrconlin r?

bbangert added 3 commits July 12, 2016 15:58
The WebPushHandler was not configured to run with autoendpoint.
This commit fixes the URL registration.
Add test_web_webpush tests which were accidentally missed in an earlier commit.
Update self.assert tests to use nose test utils which actually trigger errors.
This add's a endpoint_diagnostic CLI that will resolve an endpoint to its
UAID/CHID and router record info along with applicable valid channels.

Closes #509
@codecov-io
Copy link

codecov-io commented Jul 13, 2016

Current coverage is 100%

Merging #513 into master will increase coverage by 0.10%

@@             master   #513   diff @@
======================================
  Files            37     40     +3   
  Lines          8200   8341   +141   
  Methods           0      0          
  Messages          0      0          
  Branches          0      0          
======================================
+ Hits           8191   8341   +150   
+ Misses            9      0     -9   
  Partials          0      0          

Powered by Codecov. Last updated by 52a1343...329e8be

@ghost
Copy link

ghost commented Jul 13, 2016

Nice! I wonder if it makes sense to add a little __getattribute__ magic that fails a test if it tries to access self.assert*, so that this doesn't sneak in again in the future. On the other hand, we now know to look for it in code reviews, so maybe this is a case of policy instead of implementation.

@bbangert
Copy link
Member Author

I should note that there's still plenty of self.assert's in the code, these are just the ones that were failing that PyCharm picked up as it runs tox slightly differently. We should still replace the remainder so that detecting these aren't an accident.

@jrconlin
Copy link
Member

r+

@jrconlin jrconlin merged commit 0a6eed1 into master Jul 13, 2016
@bbangert bbangert deleted the feature/issue-509 branch July 30, 2016 05:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Diagnosis CLI
3 participants