Skip to content

Commit

Permalink
remove the koalas fixture.
Browse files Browse the repository at this point in the history
  • Loading branch information
VersusFacit committed Oct 23, 2024
1 parent fca3b56 commit 5bdc4d1
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions tests/functional/adapter/test_python_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
BasePythonModelTests,
BasePythonIncrementalTests,
)
from dbt.tests.adapter.python_model.test_spark import BasePySparkTests
from dbt.tests.adapter.python_model.test_spark import (
BasePySparkTests,
PANDAS_MODEL,
PANDAS_ON_SPARK_MODEL,
PYSPARK_MODEL,
)


@pytest.mark.skip_profile("apache_spark", "spark_session", "databricks_sql_endpoint")
Expand All @@ -15,7 +20,13 @@ class TestPythonModelSpark(BasePythonModelTests):

@pytest.mark.skip_profile("apache_spark", "spark_session", "databricks_sql_endpoint")
class TestPySpark(BasePySparkTests):
pass
@pytest.fixture(scope="class")
def models(self):
return {
"pandas_df.py": PANDAS_MODEL,
"pyspark_df.py": PYSPARK_MODEL,
"pandas_on_spark_df.py": PANDAS_ON_SPARK_MODEL,
}


@pytest.mark.skip_profile("apache_spark", "spark_session", "databricks_sql_endpoint")
Expand Down Expand Up @@ -53,7 +64,7 @@ def model(dbt, spark):
"ResourceClass": "SingleNode"
}
},
packages=['spacy', 'torch', 'pydantic<1.10.3', 'numpy<1.20']
packages=['spacy', 'torch', 'pydantic<1.10.3']
)
data = [[1,2]] * 10
return spark.createDataFrame(data, schema=['test', 'test2'])
Expand Down

0 comments on commit 5bdc4d1

Please sign in to comment.