Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@emmanuel-ferdman
Copy link
Contributor

Self proofreading checklist

  • Is my code clear enough and well documented
  • Are my files well typed
  • New translations have been added or updated if new strings have been introduced in the frontend
  • Database migrations file are included
  • Are there enough tests
  • Documentation has been included (for new feature)

Changes

This PR addresses several PydanticDeprecatedSince20 warnings by updating Pydantic V1 method calls to their V2 equivalents across various test files:

  • Replaced instance.json() with instance.model_dump_json() in:
    • tests/message_processing/test_process_instances.py
    • tests/message_processing/test_process_pending_txs.py
  • Replaced instance.dict() with instance.model_dump() in tests/schemas/test_pending_messages.py.

These changes ensure compatibility with Pydantic V2 and resolve deprecation warnings observed in CI, such as those detailed in the CI logs.

How to test

Run the test suite.

Print screen / video

Notes

Signed-off-by: Emmanuel Ferdman <[email protected]>
@nesitor
Copy link
Member

nesitor commented Jun 13, 2025

Thanks for fixing that tests! 😄

@nesitor nesitor merged commit 440c96a into aleph-im:main Jun 13, 2025
3 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.

2 participants