aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuppie2026-09-04 11:31:02 -0600
committerstuppie2026-09-04 11:31:02 -0600
commit493f131d6ffe1629ffb3610165271c3c87b32d3b (patch)
tree2747cce334105038b9bf3e7dcbb11bf393621802
parent037ec3e2475fbb845013e427e507bc266020fba7 (diff)
downloadgeneralresearch-493f131d6ffe1629ffb3610165271c3c87b32d3b.tar.gz
generalresearch-493f131d6ffe1629ffb3610165271c3c87b32d3b.zip
incite collection tests: i think most of these work? they just take forever to run. moving on for now
-rw-r--r--tests/incite/collections/test_df_collection_item_thl_web.py19
1 files changed, 2 insertions, 17 deletions
diff --git a/tests/incite/collections/test_df_collection_item_thl_web.py b/tests/incite/collections/test_df_collection_item_thl_web.py
index 9e00bca..eeabb41 100644
--- a/tests/incite/collections/test_df_collection_item_thl_web.py
+++ b/tests/incite/collections/test_df_collection_item_thl_web.py
@@ -75,7 +75,6 @@ class TestDFCollectionItemBase:
argnames="df_collection_data_type, offset", argvalues=combo_object()
)
class TestDFCollectionItemProperties:
-
def test_filename(
self,
df_collection_data_type: DFCollectionType,
@@ -97,7 +96,6 @@ class TestDFCollectionItemProperties:
argnames="df_collection_data_type, offset", argvalues=combo_object()
)
class TestDFCollectionItemPropertiesBase:
-
def test_name(
self,
df_collection: DFCollection,
@@ -166,7 +164,6 @@ class TestDFCollectionItemPropertiesBase:
),
)
class TestDFCollectionItemMethod:
-
def test_has_postgres(
self,
df_collection_data_type: DFCollectionType,
@@ -278,7 +275,6 @@ class TestDFCollectionItemMethod:
assert not df.empty
assert set(df.columns) == set(df_collection.type_schema.columns.keys())
-
def test_from_postgres_standard(
self,
df_collection_data_type: DFCollectionType,
@@ -301,27 +297,18 @@ class TestDFCollectionItemMethod:
item: DFCollectionItem
if df_collection.data_type == DFCollectionType.LEDGER:
- # We're using parametrize, so this If statement is just to
- # confirm other Item Types will always raise an assertion
- with pytest.raises(expected_exception=AssertionError) as cm:
- _ = item.from_mysql_standard()
- assert (
- "Can't call from_mysql_standard for Ledger DFCollectionItem"
- in str(cm.value)
- )
-
continue
# Unlike .from_mysql_ledger(), .from_mysql_standard() will return
# back and empty df with the correct columns in place
- df = item.from_mysql_standard()
+ df = item.from_postgres_standard()
assert isinstance(df, pd.DataFrame)
assert df.empty
assert set(df.columns) == set(df_collection.type_schema.columns.keys())
incite_item_factory(user=u1, item=item)
- df = item.from_mysql_standard()
+ df = item.from_postgres_standard()
assert isinstance(df, pd.DataFrame)
assert not df.empty
assert set(df.columns) == set(df_collection.type_schema.columns.keys())
@@ -504,7 +491,6 @@ class TestDFCollectionItemMethod:
argvalues=list(iter_product(df_collections, ["12h", "10D"], [timedelta(days=15)])),
)
class TestDFCollectionItemMethodBase:
-
@pytest.mark.skip
def test_search_highest_numbered_path(
self,
@@ -783,7 +769,6 @@ async def test_client_parametrize(
argvalues=list(iter_product(df_collections, ["12h", "10D"], [timedelta(days=15)])),
)
class TestDFCollectionItemFunctionalTest:
-
def test_to_archive_and_ddf(
self,
client_no_amm: DaskClient,