-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Move some functions from Server to BaseServer and BokehTornado #10070
Conversation
fe4a227
to
c20c0c8
Compare
|
||
''' | ||
return self._prefix | ||
|
||
@property | ||
def port(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one thing I don't love about this work is leaving the port
and address
properties instead of deferring to the ones on BaseServer. But if those are are used the log ouptut looks like:
2020-05-25 12:49:11,188 Bokeh app running at: http://0.0.0.0:57641/
instead of
2020-05-25 12:49:11,188 Bokeh app running at: http://localhost:57641/
So I think this will have to do for now.
@@ -170,7 +170,7 @@ def test_prefix(ManagedServerLoop) -> None: | |||
assert server.prefix == "" | |||
|
|||
with ManagedServerLoop(application, prefix="foo") as server: | |||
assert server.prefix == "foo" | |||
assert server.prefix == "/foo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is actually more correct. Hopefully does not bite anyone.
I'm pretty sure this affords what was it the other PR so I will go ahead and merge. |
Hey @bryevdv ! I apologize for going dark here. It's been a busy time and I'm just now going through some github e-mail. |
@mrocklin In the interest of saving you some time I made a new PR with the additional changes needed to get tests passing. Can you test out this branch and verify that is satisfies your needs?