JamesHutchison / pytest-hot-reloading

A hot reloading pytest daemon, implemented as a plugin
MIT License
89 stars 2 forks source link

Add workarounds for pytest-xdist and pytest-django, add CI linting, fix types, fix behavior #32

Closed JamesHutchison closed 1 year ago

JamesHutchison commented 1 year ago

This adds workaround logic, enabling the ability to fix libraries that break when ran with hot reloading.

This addresses #9

As it turns out, pytest-django doesn't have issues unless parallel execution is used. By disabling that feature we can prevent problems. Using xdist also has issues, just in general, as it seems to modify how tests are collected, resulting in items missing after running test collection.

In the process of writing this, a couple bugs were squished as well: