From 31f2de8eca3435bd1ac28255567200e6759836cf Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Thu, 20 Feb 2025 03:03:09 +0000 Subject: add semi-working test for __init__ (uses localstack) --- test/test_init.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/test_init.py (limited to 'test/test_init.py') diff --git a/test/test_init.py b/test/test_init.py new file mode 100644 index 0000000..b717e35 --- /dev/null +++ b/test/test_init.py @@ -0,0 +1,9 @@ +from obfuscator.__init__ import main + + +def test_main_integration(): + test_source = "s3://test-bucket/data.csv" + result = main(test_source, ["name"], log_level="DEBUG") + result_str = result.decode("utf-8") + assert "John" not in result_str + assert "***" in result_str -- cgit v1.2.3