דילוג לתוכן
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
aeondave/python-testingדוחות ותאימות

python-testing

⁨Python testing with pytest: fixtures, parametrization, mocking, test organization, async tests, Hypothesis, ExceptionGroup, free-threaded caveats, coverage, and CI hygiene. Use when writing or reviewing Python tests to improve correctness and reduce flakiness.⁩

v2026.11.13-21cd5683 התקנות⁦+3⁩ ב-7 ימים39 כוכביםMITסונכרן לפני 10 שעות

התקנה

עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/python-testing

נכתב אל ⁦~/.notholy/skills⁩ אחרי בדיקת החתימה וה-SHA-256.

חתימהחתום, ed25519
L1xLi8p/Rc…gAGFd7CQ==ה-CLI בודק את ה-SHA-256 ואת החתימה לפני שהוא כותב קובץ כלשהו.
חבילה27219579…d55c1b21
27219579d63d…c755d55c1b219 קבצים · ⁦5.7 KB⁩
סריקהנמוךממצא אחד
  • קישורים לדומיינים חיצוניים
לסריקה המלאה
מקורgithub.com/AeonDave/malskill/tree/main/coding/python-testing@21cd568

הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.

High-signal guidance for writing tests that are deterministic, readable, and maintainable.

When to activate

  • Adding tests (unit/integration) for new or existing code
  • Refactoring tests to reduce flakiness
  • Designing fixtures and test organization
  • Adding coverage, CI checks, or async tests
  • Property tests (Hypothesis) or concurrent/free-threaded suites

Outcome expectations

  • Tests are deterministic and pass reliably in CI.
  • Coverage is meaningful; assertions test behavior, not implementation details.
  • Flaky tests are rare and quickly diagnosed (fixtures, mocking, timing).
  • New developers can understand test intent within 30 seconds of reading.

For new code: Use test-driven-development when implementing test-first; it owns the loop and the entry points for existing code and refactors. Use this skill for pytest mechanics.

For flaky/failing tests:

  1. Check for shared state (mocks, fixtures, filesystem).
  2. Check for timing assumptions (avoid sleep, use synchronization).
  3. Check mock patch targets (patch as used, not where defined).
  4. Isolate to minimal reproduction in separate test.

Core rules

  • Prefer small unit tests for logic; use integration tests for boundaries.
  • Use pytest fixtures to remove duplication, but avoid fixture overengineering.
  • Avoid sleeping in tests; synchronize via conditions/events.
  • Mock at boundaries (network, time, DB), not everywhere.
  • Coverage is a signal: aim for meaningful assertions, not line-hits.
  • Do not add production hooks solely for tests; use real seams or dependency injection.
  • Pair with test-driven-development when implementing persistent code or bug fixes test-first.
  • If mocks, timing, or flakes dominate, pair with testing-reliability; if the root cause is unclear, pair with systematic-debugging.
  • Asyncio-heavy tests: also load python-async-patterns testing.md.
  • CancelledError and ExceptionGroup are not caught by pytest.raises(Exception) / pytest.raises(ValueError) respectively.

Resources

Load on demand:

  • references/tdd-and-structure.md — load when naming and organizing tests; routes test-first work to the shared workflow
  • references/fixtures-parametrize.md — fixtures (scopes, autouse), parametrization patterns
  • references/mocking.md — unittest.mock, patching correctly, async mocks
  • references/async.md — pytest-asyncio loop scope; cancellation/ExceptionGroup pointers
  • references/concurrency.md — load for threads, InterpreterPoolExecutor, free-threaded suites
  • references/property.md — load when example tests miss a space Hypothesis can shrink
  • references/coverage-ci.md — pytest-cov, coverage hygiene, CI tips
  • references/commands.md — common pytest commands and selectors

הקבצים בגרסה הזו

הרשאות

הרשאההוצהרנמצא בסריקה
קורא קבציםלאלא
כותב קבציםלאלא
מריץ פקודות shellכןכן
משתמש ברשתכןכן
משתמש במחבריםלאלא
שולט בדפדפןלאלא

ממצאי הסריקה

נבדק ב-13 בנוב׳ 2026

  1. מידעקישור · קישורים לדומיינים חיצוניים

סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.

גרסהפורסמהCommitSHA-256חתימהשינוי בהרשאות
v2026.11.13-21cd56813 בנוב׳ 202621cd56827219579חתומה–

שאלו כל מה שהסקופ מאפשר.

יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.

  1. 1/3

    יצירת חשבון

    פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.

    פרטיחברה
  2. 2/3

    הוספת קרדיטים

    בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.

    $5.00טעינה מינימלית
  3. 3/3

    שאלה ראשונה

    בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.

    $ notholy login