Skip to content

test_update_essential_choices#

test_update_default_essentials#

Source code in tests/unit/apps/refdata/commands/test_update_essential_choices.py
@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"