#!/usr/bin/make -f

export CRYPTODATAHUB_TEST_SKIP_LIVE_SERVER := 1

# The package is not importable from the directory pybuild builds in, so the tests run after the
# installation step instead. That step is not the one nocheck turns off, so the profile has to be
# honoured here.
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
export PYBUILD_AFTER_INSTALL := PYTHONPATH={destdir}/usr/lib/python3/dist-packages {interpreter} -m unittest discover
endif

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

override_dh_auto_test:
