When you start applying best development practices such as TDD, you discover that you make much better software.
First, you can TDD your python code with anything, django has a test runner, otherwise you have pytest and many friends.
Then, you make python to interact with javascript. In the Django community, it seems that there is a conscensus around “use selenium to test your JS”. I’ve been like this myself for years, but the thing with selenium is that it’s functional testing, not unit testing, it does bring short term ROI, but on the long term it becomes costy to maintain over time.
Read More