Adam Johnson
Adam Johnson
Just saw it taking CPU again, killed it, and got some more logging from the debug panel: ``` TabNine expected prefix "" but found prefix "N", falling back to substituting...
I don't think this is a good approach. Fiddling with `run_on_commit` is not documented behaviour inside Django. The only reliable way to prevent these `on_commit` hooks from firing is to...
I think if you use `atomic()`, you should be able to use [`set_rollback`](https://docs.djangoproject.com/en/3.0/topics/db/transactions/#django.db.transaction.set_rollback) to tell Django to roll back, and then when you exit the atomic it will do so....
The link on the Github repo description also needs updating.
Instead of using the class decorator, you can replicate what it does in your own `setUpClass` and `tearDownClass`, reading from a class variable (untested): ```python class SomeBasicTest(TestCase): frozen_time = "2020-01-02"...
This works in time-machine: https://pypi.org/project/time-machine/ (Built as an alternative to freezegun, [history post](https://adamj.eu/tech/2020/06/03/introducing-time-machine/))
Okay turns out a lot of tests call `parse_source` - perhaps the parser construction can be made a bit more lazy with `@lru_cache` or similar.
you @'d the wrong adam
If there are two attributes in the HTML, what order will they come out of `Soup` ? What about whitespace, etc.?
(Apologies if this isn't new, I couldn't find any existing issue but there are quite a few terms to search/filter so might have missed one)