api_testing

Validate FastAPI endpoints and authentication workflows with pytest fixtures.

8|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/immuhammadfurqan/AWS_NOVA_HACKATHON --skill api-testing-immuhammadfurqan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api_testing
Source: https://github.com/immuhammadfurqan/AWS_NOVA_HACKATHON/tree/main/.agent/skills/api_testing
Command: npx skills add https://github.com/immuhammadfurqan/AWS_NOVA_HACKATHON --skill api-testing-immuhammadfurqan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured, repeatable way to validate the AARLP FastAPI backend, ensuring authentication, job and candidate APIs, workflow nodes, and async operations behave correctly across unit, integration, and end-to-end scenarios.

Core Features & Use Cases

  • Comprehensive Test Coverage: Unit tests, integration tests, async tests, and full workflow end-to-end tests for jobs, candidates, authentication, and workflow engines.
  • Deterministic Test Environment: Fixtures and dependency overrides for a test Postgres database, mocked external services (AI, Pinecone, Twilio), and CI integration for automated runs.
  • Performance & Safety Checks: Includes performance assertions, security/authorization checks, and best-practice guidance for mocking and isolation to prevent flaky tests.

Quick Start

Run the full pytest suite against the FastAPI app using the provided test fixtures and CI configuration.

Frequently Asked Questions about api_testing

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

FAQPage Schema
How do I test FastAPI endpoints and authentication workflows with pytest?

To test FastAPI endpoints and authentication workflows with pytest, you apply tests across unit, integration, async, and end-to-end workflow scenarios. This validates API behavior for jobs, candidates, and approval flows using structured pytest fixtures.

How do I mock external services like Pinecone and Twilio in FastAPI integration tests?

Mocking external services like Pinecone and Twilio in FastAPI integration tests requires injecting mocks for these external dependencies. This ensures deterministic test runs by preventing live network calls during your pytest execution.

Do I need a test Postgres database and dependency overrides for pytest FastAPI validation?

Yes, FastAPI validation with pytest requires a test Postgres database and dependency overrides for get_db. These components isolate the test environment from production data and ensure repeatable test execution.

What is the best way to prevent flaky tests when running async FastAPI workflow scenarios?

The best way to prevent flaky tests in async FastAPI workflow scenarios is using mocks for external services and pytest fixtures. This isolation ensures deterministic runs and stable end-to-end workflow test execution.

Can I run performance assertions and security authorization checks in a FastAPI pytest suite?

Yes, you can run performance assertions and security authorization checks within a FastAPI pytest suite. The testing approach includes these safety checks alongside standard unit and integration tests to validate endpoint behavior.

Why are my FastAPI unit tests failing without mocked AI and external service dependencies?

FastAPI unit tests fail without mocked AI and external service dependencies because live network calls create non-deterministic behavior. Mocking services like Nova, Pinecone, and Twilio ensures deterministic and isolated test runs.