[JOSS] Capture user warnings + context manager
Comment from reviewer:
There are warnings when running the tests. The FutureWarnings (indicating deprecation) should be fixed and the UserWarnings could be caught while running the tests using this context manager when they are expected.