From 30a6936632bbe4ffb526ba9f7956ede4d786c640 Mon Sep 17 00:00:00 2001 From: Daiki Katsuragawa <50144563+daikikatsuragawa@users.noreply.github.com> Date: Tue, 4 Aug 2020 02:31:51 +0900 Subject: [PATCH] Create test_arules.py (#338) --- pycaret/tests/test_arules.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pycaret/tests/test_arules.py diff --git a/pycaret/tests/test_arules.py b/pycaret/tests/test_arules.py new file mode 100644 index 0000000..2001bf6 --- /dev/null +++ b/pycaret/tests/test_arules.py @@ -0,0 +1,24 @@ +import os, sys +sys.path.insert(0, os.path.abspath("..")) + +#compare_models_test +import pytest +import pycaret.arules +import pycaret.datasets + +def test(): + # loading dataset + data = pycaret.datasets.get_data("france") + + # init setup + arul101 = pycaret.arules.setup(data = data, + transaction_id = "InvoiceNo", + item_id = "Description", session_id=123) + + # create model + model = pycaret.arules.create_model() + + assert 1 == 1 + +if __name__ == "__main__": + test() -- GitLab