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:
The function that enabled rewriting tests with pytest wasn't being called. It is now.
There's been a nasty off-by-one bug in the jurigged library that seemed to be fixed by adding the pytest rewrite. The culprit logic seems to be an intentional offset. From what I can tell, the offset is unnecessary, but I'm not really sure. This fixes the issue I can see and hopefully doesn't introduce new issues in the process.
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: