File size: 511 Bytes
0c6aadc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | """Build the extension locally and run the test suite against it, stubbing
kernels.get_kernel so the published-variant tests run natively."""
import os
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, ROOT)
import load_local
mod = load_local.load(verbose="-v" in sys.argv)
import kernels
kernels.get_kernel = lambda *a, **k: mod
import pytest
sys.exit(pytest.main([os.path.join(ROOT, "tests"), "-x", "-q", "-p",
"no:cacheprovider"]))
|