From 6f12316f63578d4110233fa8d7f42771c7fe8b2a Mon Sep 17 00:00:00 2001 From: Nayan Pariya <81795258+nayan2167@users.noreply.github.com> Date: Sun, 19 Jan 2025 14:45:52 +0530 Subject: [PATCH] fix: use local dataset for CLV tests (#1412) - Modified test_utils.py to use local CLV dataset instead of downloading from GitHub. - Ensured the dataset is included in the repository. --- tests/clv/test_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/clv/test_utils.py b/tests/clv/test_utils.py index cf756e32..f6610e9e 100644 --- a/tests/clv/test_utils.py +++ b/tests/clv/test_utils.py @@ -86,8 +86,7 @@ def fitted_gg(test_summary_data) -> GammaGammaModel: # TODO: Consolidate this fixture into the tests requiring it? @pytest.fixture() def df_cum_transactions(): - url_cdnow = "https://raw.githubusercontent.com/pymc-labs/pymc-marketing/main/data/cdnow_transactions.csv" - cdnow_transactions = pd.read_csv(url_cdnow) + cdnow_transactions = pd.read_csv("data/cdnow_transactions.csv") rfm_data = rfm_summary( cdnow_transactions,