-
Hi, Steps to reproduce:
from django.test import TestCase
class MyTestCase(TestCase):
def test_this_fails(self):
self.client.get("")
Is it possible to configure Reactivated, so that this test client would work? The other solution which comes to my mind is to run tests in an environment where the webserver is running and then instead of Django's test client use something like requests and communicate over actual HTTP on localhost. This is more of a hassle, so I'd like to avoid it, unless there is no other way. Anyway, thanks for the good work on this library :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Generally, I use But for this to actually run and returned rendered responses, you'd need the React renderer to be running. There's no official way to do that yet, as you'd need to build the client. If before running tests, you do Another option is to set Give a try to those both. An "official" way to do e2e testing would be good. |
Beta Was this translation helpful? Give feedback.
We generally use the built-in Django testing tools rather than pytest. We have a few different kinds of tests:
So, @bartacc, your approach should work. But, you do need to build the reactivated assets first. We accomplish that by means of a Makefile that looks something like this: