#! /usr/bin/make -f
export DH_VERBOSE = 1
export PYBUILD_NAME=fastapi

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
	# tests/test_default_response_class.py -> ModuleNotFoundError: No module named 'orjson'
	# test_get_custom_response -> AssertionError: orjson must be installed to use ORJSONResponse
	# tests/test_tutorial/test_security/test_tutorial005* -> ModuleNotFoundError: No module named 'jose'
	# tests/test_response_by_alias.py -> TypeError: Field() missing 1 required positional argument: 'default'
	# test_root, test_async_testing -> until we have an up-to-date httpx, which doesnt cause "AttributeError: module 'httpcore' has no attribute 'PlainByteStream'"
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="PYTHONPATH=$(CURDIR)/build/lib/ {interpreter} -m pytest tests/ --ignore=tests/test_default_response_class.py --ignore-glob=tests/test_tutorial/test_security/test_tutorial005* --ignore=tests/test_response_by_alias.py -k ' not test_get_custom_response and not test_root and not test_async_testing'" dh_auto_test
