'How to modify all databases when overriding DiscoverRunner setup_databases with parallel
I'm running the tests with --parallel and want to add some object to every database that is created (for each process).
currently, I have a CustomTestRunner which inherit from DiscoverRunner.
In that class, I'm overriding setup_databases method.
after calling super().setup_databases(), I'm making a change in the db (like Users.objects.create(....))
The changes occur only in one of the databases, But I want that change to be in all of them.
How can I achieve that? My Custom Test Runner
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
