plugin-testing

Mock entity clients and FastAPI dependencies for NeMo Platform plugin unit tests.

58|16|Updated May 14, 2026
One-click install
npx skills add https://github.com/NVIDIA-NeMo/nemo-platform --skill plugin-testing-nvidia-nemo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plugin-testing
Source: https://github.com/NVIDIA-NeMo/nemo-platform/tree/main/packages/nemo_platform_plugin/src/nemo_platform_plugin/.agents/skills/plugin-testing
Command: npx skills add https://github.com/NVIDIA-NeMo/nemo-platform --skill plugin-testing-nvidia-nemo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fastapi, pytest.

What problem does it solve?

This Skill addresses the complexity of testing NeMo Platform plugins by providing standardized patterns for mocking dependencies and verifying service routes without requiring a live platform environment.

Core Features & Use Cases

  • Service Route Mocking: Provides helpers to inject mock entity clients into FastAPI applications using dependency overrides.
  • CRUD Operation Validation: Offers templates for testing all five standard CRUD operations, including error handling for conflicts and missing entities.
  • Lifecycle Management: Includes essential fixtures for clearing discovery and configuration caches to prevent test interference.
  • Use Case: Developers can use these patterns to write robust unit tests for custom plugin controllers and jobs, ensuring high code quality before deployment.

Quick Start

Use the plugin-testing skill to generate a mock entity client and verify the CRUD routes for your custom plugin service.

Frequently Asked Questions about plugin-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I mock FastAPI dependencies for NeMo plugin unit testing?

Mock FastAPI dependencies for NeMo plugin unit testing by using dependency overrides to inject mock entity clients into the application. This isolates service routes, allowing you to verify CRUD operations without a live platform environment.

How do I test CRUD operations for a custom NeMo Platform plugin?

Test CRUD operations for a custom NeMo Platform plugin using provided templates that validate all five standard operations. These patterns include error handling for conflicts and missing entities to ensure robust controller behavior in isolated test environments.

Do I need pytest to test NeMo Platform plugins?

You need pytest and standard Python frameworks like unittest.mock to test NeMo Platform plugins. These testing frameworks provide the necessary structure and mocking capabilities required to verify plugin integration and execute reliable unit tests.

What is the best way to prevent test interference when testing NeMo plugin configurations?

Prevent test interference when testing NeMo plugin configurations by using lifecycle management fixtures. These essential fixtures clear discovery and configuration caches between tests, ensuring isolated environments and reliable verification of configuration overrides.

Can I verify job execution for a custom plugin without a live NeMo Platform environment?

You can verify job execution for a custom plugin without a live NeMo Platform environment by mocking entity clients. This approach enables verification of job execution and configuration overrides in isolated test environments using standard Python testing frameworks.

Why does my NeMo plugin unit test fail when verifying service routes?

NeMo plugin unit tests verifying service routes fail when dependencies are not properly mocked. Inject mock entity clients using FastAPI dependency overrides to isolate the application and ensure reliable plugin integration without requiring a live platform environment.