test: allow to run playwright tests directly with py.test cli

This commit is contained in:
Yohan Boniface 2023-09-04 15:00:51 +02:00
parent 4c03f012bd
commit c35c6ee78c
2 changed files with 4 additions and 1 deletions

View file

@ -50,7 +50,7 @@ test:
py.test -xv umap/tests/
test-integration:
DJANGO_ALLOW_ASYNC_UNSAFE=1 py.test -xv umap/tests/integration/
py.test -xv umap/tests/integration/
clean:
rm -f dist/*

View file

@ -0,0 +1,3 @@
import os
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "1"