Files
pydantic/tests/test_fastapi.sh
T
Sebastián Ramírez c7d5259c0d 🔥 Unpin SQLAlchemy version for FastAPI tests (#2865)
as it is now pinned in FastAPI, and soon I will upgrade its version
2021-06-01 14:19:11 +02:00

17 lines
469 B
Bash
Executable File

#! /usr/bin/env bash
set -x
set -e
cd fastapi
git fetch --tags
latest_tag_commit=$(git rev-list --tags --max-count=1)
latest_tag=$(git describe --tags "${latest_tag_commit}")
git checkout "${latest_tag}"
pip install -U flit
flit install
# ignore cryptography warning https://github.com/mpdavis/python-jose/issues/208
PYTHONPATH=./docs/src pytest -W 'ignore:int_from_bytes is deprecated, use int.from_bytes instead:cryptography.utils.CryptographyDeprecationWarning'