Don't try to make a keypair during tests
This commit is contained in:
parent
f20cd3eb15
commit
da936cd7df
|
@ -118,3 +118,5 @@ AUTO_ADMIN_EMAIL: Optional[str] = None
|
||||||
STATOR_TOKEN: Optional[str] = None
|
STATOR_TOKEN: Optional[str] = None
|
||||||
|
|
||||||
SENTRY_ENABLED = False
|
SENTRY_ENABLED = False
|
||||||
|
|
||||||
|
IN_TESTS = False
|
||||||
|
|
|
@ -2,3 +2,5 @@ from .base import * # noqa
|
||||||
|
|
||||||
# Fixed secret key
|
# Fixed secret key
|
||||||
SECRET_KEY = "testing_secret"
|
SECRET_KEY = "testing_secret"
|
||||||
|
|
||||||
|
IN_TESTS = True
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
from django.apps import AppConfig
|
from django.apps import AppConfig
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
class UsersConfig(AppConfig):
|
class UsersConfig(AppConfig):
|
||||||
|
@ -6,6 +7,7 @@ class UsersConfig(AppConfig):
|
||||||
name = "users"
|
name = "users"
|
||||||
|
|
||||||
def ready(self) -> None:
|
def ready(self) -> None:
|
||||||
|
if not settings.IN_TESTS:
|
||||||
# Generate the server actor keypair if needed
|
# Generate the server actor keypair if needed
|
||||||
from users.models import SystemActor
|
from users.models import SystemActor
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue