import pytest


def seed_chart_of_accounts_for(org):
    """Procurement workflow actions post to the GL (encumbrance, accrual,
    payment entries) and fail loudly if their accounts are missing — call
    this right after creating a test's `organization` fixture so workflow
    actions exercise the real account lookups against that org."""
    from django.core.management import call_command
    call_command("seed_chart_of_accounts", org=org.slug, verbosity=0)
