Found a bug when using pytest-django and django-cassandra-engine with pytest-xdist for multi-concurrency test execution.
The create_test_db method is creating the keyspace for the runtime database instead of the test database if it doesn't exist.
This causes problems when testing with multiple concurrency because each testing process attempts to create the runtime database leading to all but one of the processes failing.
In truth you don't need to create the test database either since the sync_cassandra management command deals with that.
Found a bug when using pytest-django and django-cassandra-engine with pytest-xdist for multi-concurrency test execution.
The create_test_db method is creating the keyspace for the runtime database instead of the test database if it doesn't exist. This causes problems when testing with multiple concurrency because each testing process attempts to create the runtime database leading to all but one of the processes failing.
In truth you don't need to create the test database either since the sync_cassandra management command deals with that.