test populate_more command

This commit is contained in:
imperosol committed 2026-09-27 21:49:47 +02:00
1 parent e937189b80
commit 809df909fd
2 files changed
+26 -6

No files matched your search

+13
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")