pytest: fix broken config check