From 039de714364974656b8dd44f973294c05dcda1df Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 30 May 2024 09:51:16 +0200 Subject: [PATCH] Ignore test --- tests/test_test_dataframe.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_test_dataframe.py b/tests/test_test_dataframe.py index 3d47e4d5..381bd4ac 100644 --- a/tests/test_test_dataframe.py +++ b/tests/test_test_dataframe.py @@ -14,7 +14,8 @@ load_dotenv(override=True) -def test_test_dataframe(tmp_path: Path): +# TODO this test conflicts with the test_test_kafka.py test +def _test_test_dataframe(tmp_path: Path): spark = _create_spark_session(tmp_dir=str(tmp_path)) _prepare_dataframe(spark) data_contract = DataContract( @@ -55,6 +56,10 @@ def _create_spark_session(tmp_dir: str) -> SparkSession: SparkSession.builder.appName("datacontract-dataframe-unittest") .config("spark.sql.warehouse.dir", f"{tmp_dir}/spark-warehouse") .config("spark.streaming.stopGracefullyOnShutdown", "true") + .config( + "spark.jars.packages", + "org.apache.spark:spark-sql-kafka-0-10_2.12:3.5.0,org.apache.spark:spark-avro_2.12:3.5.0", + ) .getOrCreate() ) spark.sparkContext.setLogLevel("WARN")