writing-python-sdk-spector-mock-api-tests

Installation
SKILL.md

Writing python SDK tests from a Spector case

Inputs

You may receive either:

  • Spector case link (preferred): link to a specific scenario/case under:
    • https://github.com/microsoft/typespec/tree/main/packages/http-specs/specs/...
    • https://github.com/Azure/typespec-azure/tree/main/packages/azure-http-specs/specs/...
  • PR link: a GitHub PR that changes one or more Spector cases.

Spector cases define the expected request + response. The goal is to add/extend python tests that validate the generated SDK behaves accordingly.

Output

A python pytest test (sync) added to one of:

Installs
1
GitHub Stars
5.8K
First Seen
7 days ago
writing-python-sdk-spector-mock-api-tests — microsoft/typespec