Extension of this pattern: https://docs.datasette.io/en/stable/testing_plugins.html#registering-a-plugin-for-the-duration-of-a-test I just wasted a bunch of time because I forgot to use `yield` rather than `return`, so I think this is worth documenting.