Add unit tests for utilities and obfuscation#702
Conversation
- Create `tests/test_obfuscation.py` to test `obfuscate` and `deobfuscate`. - Add tests in `tests/test_utilities.py` for `_to_sec`, `_fuzzyMatch`, `sanitizeShows`, `convertDateTimeToUTC`, `convertUtcToDateTime`, and `createError`. - Ensure all tests pass with pytest. Co-authored-by: razzeee <[email protected]>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
I have added several unit tests to improve the test coverage of the repository, specifically focusing on the
utilitiesandobfuscationmodules inresources/lib/.New tests include:
tests/test_obfuscation.py: Tests for string obfuscation and deobfuscation, including edge cases and round-trip verification.tests/test_utilities.py:test_to_sec: Verifies time duration string to seconds conversion.test_fuzzyMatch: Verifies string similarity matching.test_sanitizeShows: Verifies that sensitive/internal metadata is correctly stripped from show data.test_convertDateTimeToUTCandtest_convertUtcToDateTime: Basic verification of datetime string conversions.test_createError: Verifies the formatting of exception error reports.All tests were verified to pass using
pytest.PR created automatically by Jules for task 11482853510036946467 started by @razzeee