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 handler names for websockets for url_for usage #1880

Merged
merged 1 commit into from
Jun 28, 2020
Merged

Conversation

ahopkins
Copy link
Member

Accomplishes what #1696 set out to do, but was unable after change to #1853

Copy link
Member

@Tronic Tronic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional name argument and tests look good to me, and the rest was apparently just linter crap.

Comment on lines +37 to +39
f.write(
dedent(
f"""\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this was by linter because the original formatting was better. Maybe reindent the rest of the string literal too to match the extra level at opening?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. make fix-import

Oh trust in the almighty black.

@codecov
Copy link

codecov bot commented Jun 28, 2020

Codecov Report

Merging #1880 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1880   +/-   ##
=======================================
  Coverage   91.70%   91.70%           
=======================================
  Files          27       27           
  Lines        3000     3001    +1     
  Branches      544      544           
=======================================
+ Hits         2751     2752    +1     
  Misses        171      171           
  Partials       78       78           
Impacted Files Coverage Δ
sanic/blueprints.py 95.97% <100.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 761eef7...ccc4e00. Read the comment docs.

@ahopkins ahopkins merged commit 938c49b into master Jun 28, 2020
@ahopkins ahopkins deleted the websocket-names branch June 28, 2020 11:45
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

Successfully merging this pull request may close these issues.

2 participants