Skip to content

examples: add runnable check-only examples for operators, ui-panels, addon-scaffolding and bl-info-migration #378

Closed

Description

@TMHSDigital

Value

These four skills cover the first things every add-on author writes, and they are the only skills with no runnable example proving their contracts on 4.5 and 5.2.

Suggested examples (check-only; no render needed)

  • operators: register an operator, then:

    • assert poll() gating with and without an active object;
    • run it, assert {'FINISHED'}, and assert the redo property round-trip.

    Falsifier: drop the context guard and expect a non-zero exit.

  • ui-panels + custom-properties: register a Panel and a PropertyGroup on Scene via PointerProperty. Unregister, then assert the class and the property are both gone. Falsifier: unregister in the wrong order.

  • addon-scaffolding / bl-info-migration: load a dual-format add-on (manifest plus bl_info) via blender --command extension validate / build, plus a legacy enable. Reuse tests/smoke/check_extension_template.py.

Done when

Each skill has at least one catalog row with a falsifier, linked from its SKILL.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementexamplesgood first issuepriority: mediumskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions