Skip to content

Add unit tests for utilities and obfuscation#702

Merged
razzeee merged 1 commit intomainfrom
add-unit-tests-utilities-obfuscation-11482853510036946467
Mar 10, 2026
Merged

Add unit tests for utilities and obfuscation#702
razzeee merged 1 commit intomainfrom
add-unit-tests-utilities-obfuscation-11482853510036946467

Conversation

@razzeee
Copy link
Owner

@razzeee razzeee commented Mar 10, 2026

I have added several unit tests to improve the test coverage of the repository, specifically focusing on the utilities and obfuscation modules in resources/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_convertDateTimeToUTC and test_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

- 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]>
@google-labs-jules
Copy link
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@razzeee razzeee merged commit ca7cab9 into main Mar 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant