Skip to content

Commit

Permalink
Use pytest test for schemathesis
Browse files Browse the repository at this point in the history
  • Loading branch information
francbartoli committed Mar 3, 2024
1 parent edf4446 commit f534f78
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
- name: Install fastgeoapi and run the server
run: |
poetry install
poetry run uvicorn app.main:app --host 0.0.0.0 --port 6000 --reload --loop asyncio &
poetry run uvicorn app.main:app --host 0.0.0.0 --port 5000 --reload --loop asyncio &
- name: Run schemathesis command and tests
env:
ENV_STATE: dev
OPA_ENABLED: false
API_KEY_ENABLED: true
JWKS_ENABLED: false
# env:
# ENV_STATE: dev
# OPA_ENABLED: false
# API_KEY_ENABLED: true
# JWKS_ENABLED: false
run: |
ENV_STATE=$ENV_STATE OPA_ENABLED=$OPA_ENABLED API_KEY_ENABLED=$API_KEY_ENABLED JWKS_ENABLED=$JWKS_ENABLED poetry run st run -H "X-API-KEY: pygeoapi" --checks all "http://0.0.0.0:6000/geoapi/openapi?f=json"
poetry run py.test tests/test_openapi_contract.py -vv

0 comments on commit f534f78

Please sign in to comment.