Spaces:
Runtime error
Runtime error
| ============================= test session starts ============================= | |
| platform win32 -- Python 3.11.0, pytest-9.0.2, pluggy-1.6.0 -- C:\Users\swastik\AppData\Local\Programs\Python\Python311\python.exe | |
| cachedir: .pytest_cache | |
| rootdir: C:\Users\swastik\prediqai | |
| configfile: pyproject.toml | |
| plugins: anyio-4.9.0, langsmith-0.3.43 | |
| collecting ... collected 17 items | |
| RULE/workflow/tests/test_workflow.py::TestSchema::test_valid PASSED [ 5%] | |
| RULE/workflow/tests/test_workflow.py::TestSchema::test_dup_ids PASSED [ 11%] | |
| RULE/workflow/tests/test_workflow.py::TestSchema::test_empty_steps PASSED [ 17%] | |
| RULE/workflow/tests/test_workflow.py::TestSchema::test_missing_cfg PASSED [ 23%] | |
| RULE/workflow/tests/test_workflow.py::TestSchema::test_empty_cfg PASSED [ 29%] | |
| RULE/workflow/tests/test_workflow.py::TestState::test_lifecycle PASSED [ 35%] | |
| RULE/workflow/tests/test_workflow.py::TestUDF::test_exec PASSED [ 41%] | |
| RULE/workflow/tests/test_workflow.py::TestUDF::test_missing PASSED [ 47%] | |
| RULE/workflow/tests/test_workflow.py::TestRule::test_exec PASSED [ 52%] | |
| RULE/workflow/tests/test_workflow.py::TestRule::test_not_found FAILED [ 58%] | |
| RULE/workflow/tests/test_workflow.py::TestRule::test_inactive FAILED [ 64%] | |
| RULE/workflow/tests/test_workflow.py::TestMLPredict::test_flat PASSED [ 70%] | |
| RULE/workflow/tests/test_workflow.py::TestMLPredict::test_http_err PASSED [ 76%] | |
| RULE/workflow/tests/test_workflow.py::TestMLPredict::test_row_mismatch PASSED [ 82%] | |
| RULE/workflow/tests/test_workflow.py::TestMLTrain::test_unchanged PASSED [ 88%] | |
| RULE/workflow/tests/test_workflow.py::TestPipeline::test_udf_rule_ml FAILED [ 94%] | |
| RULE/workflow/tests/test_workflow.py::TestFailFast::test_udf_boom PASSED [100%] | |
| ================================== FAILURES =================================== | |
| ___________________________ TestRule.test_not_found ___________________________ | |
| RULE\workflow\tests\test_workflow.py:100: in test_not_found | |
| execute(pd.DataFrame({"x":[1]}), {"rule_name":"nope"}, "s1") | |
| RULE\workflow\step_handlers\rule_handler.py:74: in execute | |
| raise RuntimeError("nl_to_condition/safe_apply not available (pandas_rule not installed)") | |
| E RuntimeError: nl_to_condition/safe_apply not available (pandas_rule not installed) | |
| ___________________________ TestRule.test_inactive ____________________________ | |
| RULE\workflow\tests\test_workflow.py:108: in test_inactive | |
| execute(pd.DataFrame({"x":[1]}), {"rule_name":"r"}, "s1") | |
| RULE\workflow\step_handlers\rule_handler.py:74: in execute | |
| raise RuntimeError("nl_to_condition/safe_apply not available (pandas_rule not installed)") | |
| E RuntimeError: nl_to_condition/safe_apply not available (pandas_rule not installed) | |
| ________________________ TestPipeline.test_udf_rule_ml ________________________ | |
| RULE\workflow\tests\test_workflow.py:181: in test_udf_rule_ml | |
| st.update_df(rule_handler.execute(st.get_df(), {"rule_name":"r"}, "s2")) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| RULE\workflow\step_handlers\rule_handler.py:74: in execute | |
| raise RuntimeError("nl_to_condition/safe_apply not available (pandas_rule not installed)") | |
| E RuntimeError: nl_to_condition/safe_apply not available (pandas_rule not installed) | |
| =========================== short test summary info =========================== | |
| FAILED RULE/workflow/tests/test_workflow.py::TestRule::test_not_found - Runti... | |
| FAILED RULE/workflow/tests/test_workflow.py::TestRule::test_inactive - Runtim... | |
| FAILED RULE/workflow/tests/test_workflow.py::TestPipeline::test_udf_rule_ml | |
| ======================== 3 failed, 14 passed in 1.81s ========================= | |