test_update_essential_choices# test_update_default_essentials# Source code in tests/unit/apps/refdata/commands/test_update_essential_choices.py 7 8 9 10 11@pytest.mark.django_db def test_update_default_essentials(): out = StringIO() call_command("update_default_essential_choices", stdout=out, stderr=StringIO()) assert out.getvalue().strip() == "default essentials updated successfully"