test populate_more command

This commit is contained in:
imperosol
2025-10-26 16:29:17 +01:00
parent a46cf2e592
commit 6cab1f506e
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")