aai-institute / aai-institute/pyDVL

Define more pytest markers

未关闭 适合新手
#453 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
testing
主要语言
Python
星标
146
派生
10
PR 合并指标
30 天内没有已合并 PR

描述

We currently have `pytest.mark.torch` as a pytest marker used to identify tests that depend on PyTorch. This can be used to selectively run only these tests or skip them altogether.

We should define more markers for other cases such as:

- `pytest.mark.ray` for tests that depend on ray.
- `pytest.mark.memcached` for tests that depend on memcached.

贡献指南

打开贡献指南

调研方向

在代码库中查找现有的 pytest 标记,例如 `pytest.mark.torch`,以了解其模式。搜索使用 ray 或 memcached 的测试,以确定应在哪里添加新标记。在 pytest 配置中定义这些标记(可能位于 pyproject.toml、setup.cfg 或 conftest.py 中),然后将其应用到相关的测试函数。运行已标记的测试,以验证它们是否正常工作。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
testing
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
70/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。