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 port option for ChannelsLiveServerTestCase #2136

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MohammedSaleh2001
Copy link

@MohammedSaleh2001 MohammedSaleh2001 commented Feb 20, 2025

Changes based on https://github.com/django/channels/discussions/2135

Add an accessible port attribute for the ChannelsLiveServerTestCase class. Since it is supposed to be externally accessible now, I removed the internal indicator.

This depends on changes to DaphneProcess in another pull request I've made to that repository: https://github.com/django/daphne/pull/550

Copy link
Member

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

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

Hi @MohammedSaleh2001 — thanks for this.

I think at the least, we should document the new feature in the testing docs...

https://channels.readthedocs.io/en/latest/topics/testing.html#serve-static

Otherwise no-one will ever know about it.

@MohammedSaleh2001
Copy link
Author

Hi, I've updated the documentation. If it needs more detail let me know, thanks.

Also, is the Daphne PR okay? I didn't see any documentation to update there.

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