Skip to content

Commit

Permalink
fix: rename setup functions to reflect new scope
Browse files Browse the repository at this point in the history
Signed-off-by: Ingo Müller <[email protected]>
  • Loading branch information
ingomueller-net committed Nov 29, 2024
1 parent 1c2b8e0 commit ce64b46
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion substrait_consumer/tests/adhoc/test_adhoc_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TestAdhocExpression:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls
cls.produced_plans = set()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TestApproximationFunctions:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestArithmeticDecimalFunctions:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class TestArithmeticFunctions:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestBooleanFunctions:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TestComparisonFunctions:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TestDatetimeFunctions:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class TestLogarithmicFunctions:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TestRoundingFunctions:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestStringFunctions:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestAggregatetRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TestDDLRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestFetchRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TestfilterRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TestJoinRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class TestProjectRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestReadRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestSetRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestSortRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TestWriteRelation:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
2 changes: 1 addition & 1 deletion substrait_consumer/tests/integration/test_acero_tpch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TestAceroConsumer:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls
cls.db_connection = duckdb.connect()
cls.db_connection.execute("INSTALL substrait")
Expand Down
2 changes: 1 addition & 1 deletion substrait_consumer/tests/integration/test_duckdb_tpch.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestDuckDBConsumer:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls

cls.db_connection = duckdb.connect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TestTpchPlansValid:

@staticmethod
@pytest.fixture(autouse=True)
def setup_teardown_class(request):
def setup_teardown_function(request):
cls = request.cls
cls.db_connection = duckdb.connect()
cls.db_connection.execute("INSTALL substrait")
Expand Down

0 comments on commit ce64b46

Please sign in to comment.