From 3cc5d3b2affea5cdae0268afa50a7b83ba8863af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Tue, 14 Nov 2023 17:25:02 +0100 Subject: [PATCH] Speedup the tests by using a weaker hash algo. On my machine, it reduced the time to run the test suite from 86s to 53s. (Most of the remaining time is consumed by the integration tests spawning chrome in the background) --- umap/tests/conftest.py | 7 ++++--- umap/tests/settings.py | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/umap/tests/conftest.py b/umap/tests/conftest.py index 3465994b..5cbe7031 100644 --- a/umap/tests/conftest.py +++ b/umap/tests/conftest.py @@ -9,10 +9,10 @@ from umap.models import Map from .base import ( DataLayerFactory, - MapFactory, - UserFactory, - TileLayerFactory, LicenceFactory, + MapFactory, + TileLayerFactory, + UserFactory, ) TMP_ROOT = tempfile.mkdtemp() @@ -80,3 +80,4 @@ def datalayer(map): @pytest.fixture def tilelayer(): return TileLayerFactory() + diff --git a/umap/tests/settings.py b/umap/tests/settings.py index d8706f5d..6d2b28bb 100644 --- a/umap/tests/settings.py +++ b/umap/tests/settings.py @@ -16,3 +16,7 @@ if "TRAVIS" in os.environ: "USER": "travis", } } + +PASSWORD_HASHERS = [ + "django.contrib.auth.hashers.MD5PasswordHasher", +]