Pytest had builtin support for nose that is not deprecated in 7.0. The current tests used by invoke utitlize a setup() method which Pytest marks as Nose compatibility. Changing this method to setup_method() allows the tests to succeed without warnings.