Use parametrize instead of fixtures in tests.
Catch SystemExit instead of mocking sys.exit().