From 9f2ea4ad1d8679127456892b2c20b0342698bee1 Mon Sep 17 00:00:00 2001 From: Ralph Filho Date: Thu, 15 Aug 2024 12:18:09 -0300 Subject: [PATCH] fix: tests --- requirements.test.txt | 8 ++++---- tests/unit/butterfree/load/conftest.py | 9 --------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/requirements.test.txt b/requirements.test.txt index c64039a9..651700b8 100644 --- a/requirements.test.txt +++ b/requirements.test.txt @@ -1,5 +1,5 @@ -pytest==8.3.2 -pytest-cov==5.0.0 -pytest-xdist==3.6.1 -pytest-mock==3.14.0 +pytest==5.3.2 +pytest-cov==2.8.1 +pytest-xdist==1.31.0 +pytest-mock==2.0.0 pytest-spark==0.6.0 diff --git a/tests/unit/butterfree/load/conftest.py b/tests/unit/butterfree/load/conftest.py index 2d479b0e..d0bb2c3b 100644 --- a/tests/unit/butterfree/load/conftest.py +++ b/tests/unit/butterfree/load/conftest.py @@ -1,6 +1,3 @@ -import os -import tempfile - from pyspark.sql import functions from pyspark.sql.types import StringType, StructField, StructType from pytest import fixture @@ -16,12 +13,6 @@ from butterfree.transform.utils import Function -@fixture -def temp_file(): - tempPath = tempfile.mkdtemp() - return os.path.join(tempPath, "tempFile") - - @fixture def feature_set(): key_features = [