diff options
| author | Max Nanis | 2026-03-06 16:49:46 -0500 |
|---|---|---|
| committer | Max Nanis | 2026-03-06 16:49:46 -0500 |
| commit | 91d040211a4ed6e4157896256a762d3854777b5e (patch) | |
| tree | cd95922ea4257dc8d3f4e4cbe8534474709a20dc /tests/incite/collections/test_df_collection_thl_web_ledger.py | |
| download | generalresearch-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.py | 32 |
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) +# +# +# |
