From ec3012aaea344a484731795a5a492efb3cb13deb Mon Sep 17 00:00:00 2001 From: Sid Mohan Date: Tue, 20 Feb 2024 16:10:04 -0800 Subject: [PATCH] all tests passed --- tests/test_presidio.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/test_presidio.py b/tests/test_presidio.py index 18cc376c..83cae23e 100644 --- a/tests/test_presidio.py +++ b/tests/test_presidio.py @@ -1,4 +1,5 @@ import os +import tempfile import polars as pl import pytest @@ -6,18 +7,15 @@ import datafog from datafog.presidio import PresidioPolarFog -# import tempfile - @pytest.fixture def sample_csv_file(): # Setup: Create a temporary CSV file - # with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".csv") as tmpfile: - # tmpfile.write( - # "name,email\nJohn Doe,john.doe@example.com\nJane Doe,jane.doe@example.com" - # ) - # return tmpfile.name - return "/Users/sidmohan/Desktop/v2.0.0/datafog-python/tests/files/sample.csv" + with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".csv") as tmpfile: + tmpfile.write( + "name,email\nJohn Doe,john.doe@example.com\nJane Doe,jane.doe@example.com" + ) + return tmpfile.name # test init of PresidioPolarFog