aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-21 02:50:47 +0000
committerAlex Schofield <git@ajschof.me>2025-02-21 02:50:47 +0000
commitdcb40cd87546619c48055b4cc6440ccea6bb1ab1 (patch)
tree251afb83f3c1c656d09272468c99047eb7d11640 /test
parente721d6f4fcf4877c81e36530c893491163aec126 (diff)
downloadgdpr-obfuscator-dcb40cd87546619c48055b4cc6440ccea6bb1ab1.tar.gz
gdpr-obfuscator-dcb40cd87546619c48055b4cc6440ccea6bb1ab1.zip
fix imports and instantiate Obfuscator()
Diffstat (limited to 'test')
-rw-r--r--test/test_init.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_init.py b/test/test_init.py
index b717e35..0915f13 100644
--- a/test/test_init.py
+++ b/test/test_init.py
@@ -1,9 +1,12 @@
-from obfuscator.__init__ import main
+from gdpr_obfuscator import Obfuscator
+import moto
+
+obfuscator = Obfuscator()
def test_main_integration():
test_source = "s3://test-bucket/data.csv"
- result = main(test_source, ["name"], log_level="DEBUG")
+ result = obfuscator.process_s3(test_source, ["name"])
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