Team code quality checklist - use for checking Python code quality, bugs, security issues, and best practices
中文简介正在准备中。当前显示原文说明。
github/copilot-cli-for-beginners28912026年10月15日 更新
Generate comprehensive pytest tests - use when generating tests, creating test suites, or testing Python code
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
When generating tests, follow this structure.
@pytest.mark.parametrize for multiple inputsimport pytest
from module_under_test import function_to_test
@pytest.fixture
def sample_data():
"""Provide shared test data."""
return {"key": "value"}
class TestFunctionName:
"""Tests for function_name."""
def test_happy_path(self, sample_data):
result = function_to_test(valid_input)
assert result == expected_output
def test_empty_input(self):
result = function_to_test("")
assert result == expected_for_empty
@pytest.mark.parametrize("input_val,expected", [
("valid", True),
("", False),
(None, False),
])
def test_various_inputs(self, input_val, expected):
assert function_to_test(input_val) == expected
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Team code quality checklist - use for checking Python code quality, bugs, security issues, and best practices
中文简介正在准备中。当前显示原文说明。
Generate conventional commit messages - use when creating commits, writing commit messages, or asking for git commit help
中文简介正在准备中。当前显示原文说明。
A minimal skill example - use when learning the skill format
中文简介正在准备中。当前显示原文说明。