add test deps and makefile targets

This commit is contained in:
Mike Lueders
2024-04-01 10:46:04 -05:00
parent 90a646d891
commit 9c9a36d1a5
4 changed files with 18 additions and 10 deletions

5
.gitignore vendored
View File

@@ -5,4 +5,7 @@ __pycache__/
.python-version
.DS_Store
.idea
*.iml
*.iml
.venv
build
dist

View File

@@ -16,7 +16,9 @@ python:
additionalDependencies:
dependencies: {}
extraDependencies:
dev: {}
dev:
pytest: ==8.1.1
httpretty: ==1.1.4
author: Speakeasy
clientServerStatusCodesAsErrors: true
description: Python Client SDK Generated by Speakeasy

View File

@@ -1,2 +1,8 @@
init-venv:
if [ ! -d ".venv" ]; then python3 -m venv .venv; fi
install: init-venv
source .venv/bin/activate; python3 -m pip install .[dev]
generate:
speakeasy generate sdk -s openapi.yaml -o . -l python

View File

@@ -11,19 +11,16 @@ paths:
get:
operationId: Example
parameters:
- $ref: "#/components/parameters/ResultsPerPageQueryParam"
- $ref: "#/components/parameters/HeaderParam"
responses:
'200':
description: example
components:
parameters:
ResultsPerPageQueryParam:
HeaderParam:
description: The number of results to return per page (max 100)
in: query
name: results_per_page
in: header
name: header_param
schema:
type: integer
format: int64
maximum: 100
default: 25
type: string
responses: {}