diff options
| author | Alex Schofield <git@ajschof.me> | 2025-03-03 00:47:07 +0000 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2025-03-03 00:47:07 +0000 |
| commit | 3c1d29041a2d0295b4d54b860718abb9321a9ad1 (patch) | |
| tree | 7bd1f910bc90013d581914ba9e495eee097e33c2 /test/test_cli.py | |
| parent | e939b481a53be8e9075efec594b9d9efc6f712b4 (diff) | |
| download | gdpr-obfuscator-3c1d29041a2d0295b4d54b860718abb9321a9ad1.tar.gz gdpr-obfuscator-3c1d29041a2d0295b4d54b860718abb9321a9ad1.zip | |
fix cli tests by making test mocks return a byte object instead of string0.1.0
Diffstat (limited to 'test/test_cli.py')
| -rw-r--r-- | test/test_cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_cli.py b/test/test_cli.py index 817da13..5f54975 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -9,10 +9,10 @@ def mock_obfuscator(): with patch("cli.Obfuscator") as MockObfuscator: mock_instance = MockObfuscator.return_value mock_instance.process_local.return_value = ( - '{"status": "success", "data": "local_obfuscated_data"}' + b'{"status": "success", "data": "local_obfuscated_data"}' ) mock_instance.process_s3.return_value = ( - '{"status": "success", "data": "s3_obfuscated_data"}' + b'{"status": "success", "data": "s3_obfuscated_data"}' ) yield mock_instance |
