From 4a2b7bbae7c95ade8bcb13ae1ea270469b685f0f Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Tue, 18 Feb 2025 17:05:19 +0000 Subject: add & import boto3 and moto to pyproject.toml/test_csv_reader.py --- pyproject.toml | 3 ++- test/test_csv_reader.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cc923b9..46114bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "A Python library designed to detect and remove Personally Identif authors = [{ name = "Alex Schofield", email = "git@ajschof.me" }] readme = "README.md" requires-python = ">=3.13" -dependencies = ["tabulate (>=0.9.0,<0.10.0)"] +dependencies = ["tabulate (>=0.9.0,<0.10.0)", "boto3 (>=1.36.22,<2.0.0)"] [tool.poetry] package-mode = false @@ -13,6 +13,7 @@ package-mode = false [tool.poetry.group.dev.dependencies] pytest = "8.3.4" pytest-cov = "^6.0.0" +moto = "^5.0.28" [build-system] requires = ["poetry-core>=2.0.0,<3.0.0"] diff --git a/test/test_csv_reader.py b/test/test_csv_reader.py index 271adae..f59a5a7 100644 --- a/test/test_csv_reader.py +++ b/test/test_csv_reader.py @@ -1,6 +1,8 @@ # csv_reader.py - tests # Author: Alex Schofield +import boto3 +from moto import mock_s3 from obfuscator.csv_reader import CSVReader reader = CSVReader() -- cgit v1.2.3