From c35c6ee78c7272a2ac4afa0808cfa1c6d6704134 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 4 Sep 2023 15:00:51 +0200 Subject: [PATCH] test: allow to run playwright tests directly with py.test cli --- Makefile | 2 +- umap/tests/integration/__init__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8401f1bb..a66e462d 100644 --- a/Makefile +++ b/Makefile @@ -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/* diff --git a/umap/tests/integration/__init__.py b/umap/tests/integration/__init__.py index e69de29b..ac695ec8 100644 --- a/umap/tests/integration/__init__.py +++ b/umap/tests/integration/__init__.py @@ -0,0 +1,3 @@ +import os + +os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "1"