test populate_more command

This commit is contained in:
imperosol
2025-10-26 16:29:17 +01:00
parent 5d5451a786
commit 8d02e88743
2 changed files with 26 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
import contextlib
import os
import pytest
from django.core.management import call_command
@pytest.mark.django_db
def test_populate_more(settings):
"""Just check that populate more doesn't crash"""
settings.DEBUG = True
with open(os.devnull, "w") as devnull, contextlib.redirect_stdout(devnull):
call_command("populate_more", "--nb-users", "50")