Replies: 2 comments
-
Hi @ckcollab -- sorry no not really. You'll need to experiment and see what works. I think the comments on the linked issue are probably the best starting point. If you make progress. It'll be interesting to see what you come up with. I'm going to concert this to a discussion as I'm not sure it's actionable in its current state. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It was not in a channel context, but for the records, I was able to do some mocking by code like this (my use case was to avoid some requests calls triggered by the UI under tests):
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you so much for channels, as always!
We're trying to write some selenium E2E tests that require django views to be mocked, and we're discovering that this doesn't seem very simple.. are there some best practices/tips for accomplishing mock patching Django views within ChannelsLiveServerTestCase?
Will gladly submit a PR to the docs with some examples, once we figure out a neat way to do it.
Relates to: #707
Beta Was this translation helpful? Give feedback.
All reactions