coding/python-testing/SKILL.md
Python testing patterns with pytest: TDD loop, fixtures, parametrization, mocking, test organization, async testing, coverage, and CI hygiene. Use when writing or reviewing Python tests to improve correctness and reduce flakiness.
npx skillsauth add aeondave/malskill python-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
High-signal guidance for writing tests that are deterministic, readable, and maintainable.
For new code:
For flaky/failing tests:
sleep, use synchronization).test-driven-development when implementing persistent code or bug fixes test-first.testing-reliability; if the root cause is unclear, pair with systematic-debugging.Load on demand:
references/tdd-and-structure.md — TDD loop, naming, organizing testsreferences/fixtures-parametrize.md — fixtures (scopes, autouse), parametrization patternsreferences/mocking.md — unittest.mock, patching correctly, async mocksreferences/async.md — pytest-asyncio patterns and pitfallsreferences/coverage-ci.md — pytest-cov, coverage hygiene, CI tipsreferences/commands.md — common pytest commands and selectorsdevelopment
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.