Merge pull request #1405 from umap-project/almet/speedup-tests

Speedup the tests by using a weaker hash algo.
This commit is contained in:
Yohan Boniface 2023-11-14 17:51:17 +01:00 committed by GitHub
commit 6602491511
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -9,10 +9,10 @@ from umap.models import Map
from .base import ( from .base import (
DataLayerFactory, DataLayerFactory,
MapFactory,
UserFactory,
TileLayerFactory,
LicenceFactory, LicenceFactory,
MapFactory,
TileLayerFactory,
UserFactory,
) )
TMP_ROOT = tempfile.mkdtemp() TMP_ROOT = tempfile.mkdtemp()
@ -80,3 +80,4 @@ def datalayer(map):
@pytest.fixture @pytest.fixture
def tilelayer(): def tilelayer():
return TileLayerFactory() return TileLayerFactory()

View file

@ -16,3 +16,7 @@ if "TRAVIS" in os.environ:
"USER": "travis", "USER": "travis",
} }
} }
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]