Comments (5)
Yes, the tests aren't done yet, and won't be until the code is semi-finalised; closing as INVALID, since obviously passing tests are needed, and will come when the code stablilises.
from channels.
Context: I'm seeing if I can make a dent in #32 because that's a blocker for me. Writing my own tests is a way for me to explore the problem, and might be helpful for the project in general. So it would be useful to have a working test command even if existing tests don't pass. Currently they are not just failing, but erroring.
from channels.
I'll see if I can get the test runner working unless you recommend against it. Any tips?
from channels.
Not really; what's there is pretty basic and doesn't really work terribly well. The main problem you'll have is that tests will need to have at least two different processes running if not three (daphne, redis, test code) if you want to do proper end-to-end testing; if you just want to artificially generate messages instead of going via Daphne, you'll need to probably write a whole suite of code that makes example messages and hook everything up to the in-memory ASGI backend.
from channels.
I'm not trying to test end-to-end. Just unit testing. I think I may have uncovered a bug already, or I am using the wrong Message class. I'll put it in a PR so you can see. Then I'll probably put Channels aside until things have settled a bit more. Thanks!
from channels.
Related Issues (20)
- cannot support use django reverse() path() to testing routing HOT 1
- TypeError: object NoneType can't be used in 'await' expression when testing to group.send. Errror only occurs on when deployed to Kuberentes. HOT 7
- How to execute several database access in async consumers HOT 1
- Channels Release supporting Django 4.2 HOT 2
- How to test sync WebsocketConsumer that queries the database HOT 5
- Add a global `timeout` parameter to `Communicator`s HOT 3
- AsyncConsumer listening via group_send() never recieves, when two browser tabs are open HOT 2
- Running ChannelsLiveServerTestCase does not create database for browser HOT 21
- "group_add" is not a known member of "None" HOT 1
- ProtocolTypeRouter.__call__() missing 1 required positional argument: 'send' HOT 1
- Feature request: WebTransport support in Django Channels HOT 1
- Question about versions HOT 1
- initkwargs wasn't set in result consumer HOT 7
- `TEST_CONFIG` key has code using it but seems to be broken and no longer documented HOT 2
- AttributeError: 'NoneType' object has no attribute 'group_add' HOT 1
- OriginValidator could raise exception/log message for denied connections HOT 1
- Unable to collect code coverage when using `ChannelsLiveServerTestCase` HOT 14
- error in channel layer explanations HOT 2
- adding a check if group_name exists method for channel_layer HOT 1
- Small messages are getting concatenated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from channels.