pytest-gen
Skill2.8k starsChanged 6 months agoMITView on GitHub
Generate comprehensive pytest tests - use when generating tests, creating test suites, or testing Python code
Trending
Less talk lately.about the whole repository
Who's talking about github/copilot-cli-for-beginners
- @visualstudio.com“New course alert 📣 GitHub Copilot CLI for Beginners is live—and it’s free. 8 chapters, a hands-on project, …”Bluesky · Apr 3, 2026 · 21 likes
- @midu.dev“Microsoft acaba de lanzar un curso gratuito y de código abierto: GitHub Copilot CLI para principiantes. 8 …”Bluesky · Apr 2, 2026 · 12 likes
- @dot.net“New course alert 📣 GitHub Copilot CLI for Beginners is live—and it’s free. 8 chapters, a hands-on project, …”Bluesky · Apr 4, 2026 · 9 likes
- github/app“Load repo-scoped MCP servers (./.mcp.json) when openning session in that repo - matching copilot CLI behavior”GitHub · May 14, 2026 · 8 reactions
- @github.com“Creating a pull request? Let Copilot handle it. ▶️ Learn more tips if you're new to Copilot CLI. 👇…”Bluesky · Jun 15, 2026 · 7 likes
The biggest 5 of 54 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 54
Talked about on GitHub and Bluesky (54 times).
On GitHub · 45
- May 14, 2026Load repo-scoped MCP servers (./.mcp.json) when openning session in that repo - matching copilot CLI behavior — github/app8 reactions · 3 comments
- Sep 10, 2026Create Skill.md — 1napz/crystalcastleX1 reaction
- Oct 2, 2026[bot] Sync CLI for Beginners chapter 01 with upstream — edburns/awesome-copilot0 reactions
- Aug 21, 2026[bot] sync: update CLI for Beginners Chapter 01 for Copilot CLI v1.0.79–v1.0.80 — HitenBhavsarMSFT/awesome-copilot0 reactions
- Aug 21, 2026[bot] sync: update CLI for Beginners Ch01 for Copilot CLI v1.0.79–v1.0.80 features — jamesmontemagno/awesome-copilot0 reactions
40 more on GitHub
- Aug 21, 2026[bot] sync(cli-beginners): update ch01 for Copilot CLI v1.0.79–v1.0.80 features — adamtasteslikegood/awesome-copilot0 reactions
- Aug 21, 2026[bot] sync(cli-for-beginners): update Ch01 for Copilot CLI v1.0.79–v1.0.80 features — AndreaGriffiths11/awesome-copilot0 reactions
- Aug 21, 2026[bot] sync: update CLI for Beginners ch01 for Copilot CLI v1.0.79–v1.0.80 features — stormwild/awesome-copilot0 reactions
- Aug 14, 2026[bot] sync: cli-for-beginners — /rewind, /plugins, /permissions, session commands (v1.0.76–v1.0.78) — CalinL/awesome-copilot0 reactions
- Aug 14, 2026[bot] sync: update /rewind docs for Copilot CLI v1.0.78 improvements — samqbush/awesome-copilot0 reactions
- Aug 14, 2026[bot] sync: update /rewind docs for CLI v1.0.78 (file restore, no git required) — tlmii/awesome-copilot0 reactions
- Aug 14, 2026[bot] sync: update /rewind docs to reflect v1.0.78 improvements — HitenBhavsarMSFT/awesome-copilot0 reactions
- Aug 14, 2026[bot] docs: sync /rewind updates from copilot-cli-for-beginners (v1.0.78) — PlagueHO/awesome-copilot0 reactions · 1 comment
- Aug 14, 2026[bot] sync: update /rewind docs for v1.0.78 improvements (CLI for Beginners) — jennyf19/awesome-copilot0 reactions
- Aug 14, 2026[bot] Sync /rewind updates from copilot-cli-for-beginners (v1.0.78) — jasweaver/awesome-copilot0 reactions
- Aug 14, 2026[bot] learning-hub: sync /rewind v1.0.78 improvements from upstream cli-for-beginners — stormwild/awesome-copilot0 reactions
- Aug 14, 2026[bot] learning-hub: update /rewind docs for Copilot CLI v1.0.78 — GeekTrainer/awesome-copilot0 reactions
- Aug 7, 2026[bot] sync: cli-for-beginners — browser login flow (v1.0.77) + /permissions & /plugins commands — tlmii/awesome-copilot0 reactions
- Aug 7, 2026[bot] sync: update cli-for-beginners ch00/ch01 from upstream (Aug 2026) — HitenBhavsarMSFT/awesome-copilot0 reactions
- Aug 7, 2026[bot] sync: CLI for Beginners — update login flow, /ask, /refine, /permissions, /plugins (v1.0.76–v1.0.78) — GeekTrainer/awesome-copilot0 reactions
- Aug 7, 2026[bot] docs(learning-hub): sync cli-for-beginners with upstream v1.0.76–v1.0.78 — jennyf19/awesome-copilot0 reactions
- Aug 7, 2026[bot] sync: update CLI for Beginners mirror for v1.0.76–v1.0.78 — adamtasteslikegood/awesome-copilot0 reactions
- Aug 7, 2026[bot] sync: cli-for-beginners mirror update from upstream (2026-08-04) — jasweaver/awesome-copilot0 reactions
- Aug 7, 2026[bot] sync: update cli-for-beginners mirror for v1.0.77–v1.0.78 changes — AndreaGriffiths11/awesome-copilot0 reactions
- Aug 7, 2026[bot] sync: update CLI for Beginners learning hub (v1.0.76–v1.0.78) — stormwild/awesome-copilot0 reactions
- Jul 31, 2026[bot] sync: CLI for Beginners — plan-mode read-only note, multi-turn subagents, /model plan (Jul 29 upstream) — VeVarunSharma/awesome-copilot0 reactions
- Jul 31, 2026[bot] sync: update cli-for-beginners Learning Hub mirror (2026-07-31) — samqbush/awesome-copilot0 reactions
- Jul 31, 2026[bot] sync: CLI for Beginners Learning Hub — July 2026 upstream sync — tlmii/awesome-copilot0 reactions
- Jul 31, 2026[bot] sync: CLI for Beginners Learning Hub — July 2026 upstream updates — Vhivi/awesome-copilot0 reactions
- Jul 31, 2026[bot] sync(learning-hub): cli-for-beginners ch04 — /model plan and multi-turn subagents — jamesmontemagno/awesome-copilot0 reactions
- Jul 31, 2026[bot] sync: update CLI for Beginners ch04 and ch05 from upstream (2026-07-31) — jennyf19/awesome-copilot0 reactions
- Jul 31, 2026[bot] sync: cli-for-beginners ch04 — add /model plan and multi-turn subagents (July 2026) — stormwild/awesome-copilot0 reactions
- Jul 24, 2026[bot] sync: update cli-for-beginners Learning Hub mirror (2026-07-13 upstream commits) — VeVarunSharma/awesome-copilot0 reactions
- Jul 24, 2026[bot] sync: CLI for Beginners mirror — upstream changes through 2026-07-13 — tlmii/awesome-copilot0 reactions
- Jul 24, 2026[bot] sync: update CLI for Beginners Learning Hub mirror (2026-07-24) — AndreaGriffiths11/awesome-copilot0 reactions
- Jul 10, 2026[bot] sync: add @-style imports for instruction files to ch04 (cli-for-beginners) — VeVarunSharma/awesome-copilot0 reactions
- Jul 10, 2026[bot] docs(learning-hub): sync cli-for-beginners ch04 & ch06 with upstream (2026-07-10) — samqbush/awesome-copilot0 reactions
- Jul 10, 2026[bot] sync: CLI for Beginners Learning Hub — @-style imports & /mcp list (2026-07-10) — jennyf19/awesome-copilot0 reactions
- Jul 10, 2026[bot] sync: update cli-for-beginners mirror — /mcp list command and @-style imports (2026-07-10) — jamesmontemagno/awesome-copilot0 reactions
- Jul 3, 2026[bot] sync: CLI for Beginners – chapters 03 & 05 updated (Copilot CLI v1.0.64–1.0.65) — VeVarunSharma/awesome-copilot0 reactions
- Jun 26, 2026[bot] sync(cli-for-beginners): scheduling commands, model aliases, and agent scope note (v1.0.61–v1.0.64) — VeVarunSharma/awesome-copilot0 reactions
- Jun 12, 2026[bot] docs(learning-hub): sync CLI for beginners ch01 & ch02 with upstream (2026-06-10) — VeVarunSharma/awesome-copilot0 reactions
- Jun 5, 2026[bot] sync: update skill installation commands in CLI for Beginners ch05 — VeVarunSharma/awesome-copilot0 reactions
- May 22, 2026[bot] sync: remove Dev Days promo and update cloud agent label in CLI for Beginners mirror — VeVarunSharma/awesome-copilot0 reactions
- May 1, 2026[bot] sync: update CLI for Beginners chapters 01–02 with Copilot CLI v1.0.35/v1.0.36 features — VeVarunSharma/awesome-copilot0 reactions
On Bluesky · 9
- Apr 3, 2026New course alert 📣 GitHub Copilot CLI for Beginners is live—and it’s free. 8 chapters, a hands-on project, and everything you need to… — @visualstudio.com21 likes and reposts · 1 reply
- Apr 2, 2026Microsoft acaba de lanzar un curso gratuito y de código abierto: GitHub Copilot CLI para principiantes. 8 capítulos con proyecto práctico,… — @midu.dev12 likes and reposts
- Apr 4, 2026New course alert 📣 GitHub Copilot CLI for Beginners is live—and it’s free. 8 chapters, a hands-on project, and everything you need to… — @dot.net9 likes and reposts
- Jun 15, 2026Creating a pull request? Let Copilot handle it. ▶️ Learn more tips if you're new to Copilot CLI. 👇… — @github.com7 likes and reposts · 3 replies
- Apr 4, 2026github.com/github/copil... — @tommis.fi4 likes and reposts
4 more on Bluesky
- Jun 27, 2026The GitHub Copilot CLI for Beginners is the best starting point after the documentation: github.com/github/copil... I'd appreciate more… — @brunoborges.bsky.social3 likes and reposts · 1 reply
- Mar 11, 2026By the end, you'll confidently use AI to review code, generate tests, debug issues, and automate workflows: all from your terminal.… — @sungkim.bsky.social3 likes and reposts
- Mar 13, 2026GitHub #Copilot CLI for Beginners ✨ Boost your workflow with AI‑assisted commands in the terminal. Install, set up, and start using #GitHub… — @roberik.bsky.social2 likes and reposts
- Mar 12, 2026New Coursework from Github to try out This course is designed for: Software Developers who want to use AI from the command line Terminal… — @prabhatisme.bsky.social2 likes and reposts
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- code-checklistSkill
- commit-messageSkill
- hello-worldSkill
- pytest-genSkill
- code-checklistSkill
- commit-messageSkill
- hello-worldSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When generating tests, follow this structure.
- Very specific: line 13
Use @pytest.mark.parametrize for multiple inputs
- Distinctive: line 14
Use fixtures for shared setup
- Very specific: line 15
Follow arrange/act/assert pattern
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pytest Generation Skill
When generating tests, follow this structure.
Test Organization
- Group tests by function under test
- Use
@pytest.mark.parametrizefor multiple inputs - Use fixtures for shared setup
- Follow arrange/act/assert pattern
Coverage Requirements
- Happy path (expected usage)
- Edge cases (empty strings, None, boundary values)
- Error cases (invalid input, file not found, wrong types)
- Integration (functions working together)
Template
import 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) == expectedDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

