Jun 7, 2021
Thanks for kind words!
To be honest, I didn't have any occasion to run parallel tests with this solution. Still, I did some theoretical research and the use of `scoped_session` guarantees that the transactions will be thread-safe on Python's end. All tests should be kept separated.
If you need extra reference regarding concurrency and how does `scoped_session` work, there's a very informative excerpt from SQLAlchemy documentation: https://docs.sqlalchemy.org/en/14/orm/contextual.html
If you have any other questions related to the topic, let me know! :)