diff options
| author | Alex Schofield <git@ajschof.me> | 2025-02-20 03:03:09 +0000 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2025-02-20 03:03:09 +0000 |
| commit | 31f2de8eca3435bd1ac28255567200e6759836cf (patch) | |
| tree | 48d9e905bb8b8f3f52c62cd87f115690a07954f3 | |
| parent | 4b4025e5f4ef87c6537c8ce65d9a97f10e1ac87a (diff) | |
| download | gdpr-obfuscator-31f2de8eca3435bd1ac28255567200e6759836cf.tar.gz gdpr-obfuscator-31f2de8eca3435bd1ac28255567200e6759836cf.zip | |
add semi-working test for __init__ (uses localstack)
| -rw-r--r-- | test/test_init.py | 9 |
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 |
