aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_init.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-20 03:03:09 +0000
committerAlex Schofield <git@ajschof.me>2025-02-20 03:03:09 +0000
commit31f2de8eca3435bd1ac28255567200e6759836cf (patch)
tree48d9e905bb8b8f3f52c62cd87f115690a07954f3 /test/test_init.py
parent4b4025e5f4ef87c6537c8ce65d9a97f10e1ac87a (diff)
downloadgdpr-obfuscator-31f2de8eca3435bd1ac28255567200e6759836cf.tar.gz
gdpr-obfuscator-31f2de8eca3435bd1ac28255567200e6759836cf.zip
add semi-working test for __init__ (uses localstack)
Diffstat (limited to 'test/test_init.py')
-rw-r--r--test/test_init.py9
1 files changed, 9 insertions, 0 deletions
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
git.ajschof.me — hosted by ajschofield — powered by cgit