From f99ed297608d6f1ed463ee9580a47fb86529dcdf Mon Sep 17 00:00:00 2001 From: martinmike2 Date: Fri, 20 May 2022 09:13:39 -0400 Subject: [PATCH] export the run function from the module Exporting the run function from the module allows developers to layer additional logic on top of rule checking to dynamically bypass rules if certain conditions are met. --- business_rules/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business_rules/__init__.py b/business_rules/__init__.py index 348801bb..dcb2f3b0 100644 --- a/business_rules/__init__.py +++ b/business_rules/__init__.py @@ -1,8 +1,10 @@ __version__ = '1.1.1' +from .engine import run from .engine import run_all from .utils import export_rule_data # Appease pyflakes by "using" these exports +assert run assert run_all assert export_rule_data