Skip to content

Commit a9b8ba2

Browse files
committed
tests: move 10M row test to tests/slow - takes 1min
1 parent 5ca7b58 commit a9b8ba2

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

tests/fast/test_relation.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import duckdb
22
import numpy as np
3-
import platform
43
import tempfile
54
import os
65
import pandas as pd
@@ -527,13 +526,6 @@ def test_relation_print(self):
527526
2048,
528527
5000,
529528
1000000,
530-
pytest.param(
531-
10000000,
532-
marks=pytest.mark.skipif(
533-
condition=platform.system() == "Emscripten",
534-
reason="Emscripten/Pyodide builds run out of memory at this scale, and error might not thrown reliably",
535-
),
536-
),
537529
],
538530
)
539531
def test_materialized_relation(self, duckdb_cursor, num_rows):

tests/slow/test_relation_slow.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import platform
2+
import pytest
3+
4+
5+
class TestRelationSlow(object):
6+
@pytest.mark.skipif(
7+
condition=platform.system() == "Emscripten",
8+
reason="Emscripten/Pyodide builds run out of memory at this scale, and error might not thrown reliably",
9+
)
10+
def test_materialized_relation_large(self, duckdb_cursor):
11+
"""Test materialized relation with 10M rows - moved from fast tests due to 1+ minute runtime"""
12+
# Import the implementation function from the fast test
13+
import sys
14+
import os
15+
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'fast'))
16+
from test_relation import TestRelation
17+
18+
# Create instance and call the test with large parameter
19+
test_instance = TestRelation()
20+
test_instance.test_materialized_relation(duckdb_cursor, 10000000)

0 commit comments

Comments
 (0)