aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_init.py
blob: 0915f1379979a5deece124615dcf051824ffed68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from gdpr_obfuscator import Obfuscator
import moto

obfuscator = Obfuscator()


def test_main_integration():
    test_source = "s3://test-bucket/data.csv"
    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