The main issue is the global pytest.config, which was deprecated in version 4, is removed in version 5.