Trim pytest discovery

Close #1189