aboutsummaryrefslogtreecommitdiff
path: root/tests/incite/collections/test_df_collection_thl_web_ledger.py
diff options
context:
space:
mode:
authorMax Nanis2026-03-06 16:49:46 -0500
committerMax Nanis2026-03-06 16:49:46 -0500
commit91d040211a4ed6e4157896256a762d3854777b5e (patch)
treecd95922ea4257dc8d3f4e4cbe8534474709a20dc /tests/incite/collections/test_df_collection_thl_web_ledger.py
downloadgeneralresearch-91d040211a4ed6e4157896256a762d3854777b5e.tar.gz
generalresearch-91d040211a4ed6e4157896256a762d3854777b5e.zip
Initial commitv3.3.4
Diffstat (limited to 'tests/incite/collections/test_df_collection_thl_web_ledger.py')
-rw-r--r--tests/incite/collections/test_df_collection_thl_web_ledger.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/incite/collections/test_df_collection_thl_web_ledger.py b/tests/incite/collections/test_df_collection_thl_web_ledger.py
new file mode 100644
index 0000000..599d979
--- /dev/null
+++ b/tests/incite/collections/test_df_collection_thl_web_ledger.py
@@ -0,0 +1,32 @@
+# def test_loaded(self, client_no_amm, collection, new_user_fixture, pop_ledger_merge):
+# collection._client = client_no_amm
+#
+# teardown_events(collection)
+# THL_LM.create_main_accounts()
+#
+# for item in collection.items:
+# populate_events(item, user=new_user_fixture)
+# item.initial_load()
+#
+# ddf = collection.ddf(
+# force_rr_latest=False,
+# include_partial=True,
+# filters=[
+# ("created", ">=", collection.start),
+# ("created", "<", collection.finished),
+# ],
+# )
+#
+# assert isinstance(ddf, dd.DataFrame)
+# df = client_no_amm.compute(collections=ddf, sync=True)
+# assert isinstance(df, pd.DataFrame)
+#
+# # Simple validation check(s)
+# assert not df.tx_id.is_unique
+# df["net"] = df.direction * df.amount
+# assert df.groupby("tx_id").net.sum().sum() == 0
+#
+# teardown_events(collection)
+#
+#
+#