MetOffice/CSET

Make constraints tests more robust

Open

#838 创建于 2024年9月17日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (16 fork)auto 404
cleanupgood first issue

仓库指标

Star
 (28 star)
PR 合并指标
 (PR 指标待抓取)

描述

I don't think checking the result of repr is sufficient for many of the tests in this file. In particular those where the repr just says a lambda or function. The relevant lambda or function could be changed to something that produces complete nonsense and these tests would never catch it. It's not really related to this PR though so I'd suggest opening a new issue.

Originally posted by @SGallagherMet in https://github.com/MetOffice/CSET/pull/765#discussion_r1740967262

We should make the tests in test_constraints.py more robust. This will likely involve making most of them into filter tests.

贡献者指南