Module custom_fixture

Module custom_fixture 

Source
Expand description

Custom fixture format support for simple JSON fixtures

Supports fixtures in the format:

{
  "method": "GET",
  "path": "/api/v1/endpoint",
  "status": 200,
  "response": { /* response body */ },
  "headers": { /* optional */ },
  "delay_ms": 0 /* optional */
}

Path matching supports path parameters using curly braces:

  • /api/v1/hives/{hiveId} matches /api/v1/hives/hive_001

Structsยง

CustomFixture
Custom fixture structure matching the simple JSON format
CustomFixtureLoader
Custom fixture loader that scans a directory for fixture files