Skip to content

Conversation

@thisistanishq
Copy link

Description

This PR adds unit tests for backend/oasst_backend/task_repository.py.
Specifically, it adds test coverage for the validate_frontend_message_id function to ensure robustness against invalid inputs.

Changes

  • Added backend/tests/test_task_repository.py
  • Added tests for:
    • Valid message IDs
    • Empty message IDs
    • None values
    • Invalid types

Verification

  • Ran tests locally using pytest.
  • All tests passed.
@github-actions
Copy link

pre-commit failed.
Please run pre-commit run --all-files locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md

@github-actions
Copy link

pre-commit failed.
Please run pre-commit run --all-files locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant