83813cf Convert reset_to_default_policy into a pytest fixture

Authored and Committed by rcritten 5 months ago
    Convert reset_to_default_policy into a pytest fixture
    
    This ensures that the ticket policy will be reset even on
    failure.
    
    https://pagure.io/freeipa/issue/8589
    
    Signed-off-by: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Francois Cami <fcami@redhat.com>