Skip to content

Commit 827505c

Browse files
committed
fix(test): apps aren't loaded yet.
1 parent 613b323 commit 827505c

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

rootfs/api/settings/testing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import random
22
import string
33
import os
4+
import multiprocessing
45
from django.core import signals
56
from api.settings.celery import app
67
from api.settings.production import DATABASES
78
from api.settings.production import * # noqa
89

10+
# Fix Django test error.
11+
# https://github.com/django/django/blob/main/django/test/runner.py#L455
12+
# This code was removed in Django > 5.2, so it is safe to remove this when we upgrade.
13+
multiprocessing.set_start_method('fork')
914
# Monkey patch celery
1015
app.conf.update(task_always_eager=True)
1116
signals.request_started.send = lambda sender, **named: []

rootfs/requirements.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
# Drycc controller requirements
2-
inotify==0.2.10
2+
inotify==0.2.12
33
backoff==2.2.1
44
django==5.2.8
55
channels==4.3.1
6-
aiohttp==3.12.15
7-
django-cors-headers==4.8.0
8-
django-guardian==3.1.3
6+
aiohttp==3.13.2
7+
django-cors-headers==4.9.0
8+
django-guardian==3.2.0
99
djangorestframework==3.16.1
1010
docker==7.1.0
1111
gunicorn==23.0.0
12-
uvicorn[standard]==0.35.0
13-
asgiref==3.9.1
14-
idna==3.10
12+
uvicorn[standard]==0.38.0
13+
asgiref==3.10.0
14+
idna==3.11
1515
jsonschema==4.25.1
1616
morph==0.1.5
1717
packaging==25.0
1818
pyasn1==0.6.1
19-
psycopg[binary]==3.2.10
20-
pyOpenSSL==25.1.0
19+
psycopg[binary]==3.2.12
20+
pyOpenSSL==25.3.0
2121
ndg-httpsclient==0.5.1
2222
pytz==2025.2
2323
requests==2.32.5
2424
requests-toolbelt==1.0.0
2525
celery[redis]==5.5.3
26-
hiredis==3.2.1
26+
hiredis==3.3.0
2727
dj-database-url==3.0.1
2828
social-auth-app-django==5.6.0
29-
kubernetes==33.1.0
29+
kubernetes==34.1.0

0 commit comments

Comments
 (0)