Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEPRECATION: update pydantic methods #397

Open
4 tasks
Segelzwerg opened this issue Apr 15, 2024 · 0 comments
Open
4 tasks

DEPRECATION: update pydantic methods #397

Segelzwerg opened this issue Apr 15, 2024 · 0 comments
Labels
dependencies Pull requests that update a dependency file good first issue Good for newcomers python Pull requests that update Python code Stale

Comments

@Segelzwerg
Copy link
Contributor

Fix the following:

  • tests/whist_core/cards/test_card.py::CardTestCase::test_dict
    /home/runner/work/Whist-Core/Whist-Core/tests/whist_core/cards/test_card.py:25: DeprecatedWarning: dict is deprecated as of Use model_dump instead. Will be removed in V1..
    self.assertEqual({'suit': 'hearts', 'rank': 'ace'}, self.card.dict())

  • tests/whist_core/game/test_trick.py::TrickTestCase::test_trick_json_after_player
    The dict method is deprecated; use model_dump instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.6/migration/
    warnings.warn('The dict method is deprecated; use model_dump instead.', category=PydanticDeprecatedSince20)

  • tests/whist_core/game/test_trick.py::TrickTestCase::test_dict_trump

    PydanticDeprecatedSince20: The dict method is deprecated; use model_dump instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.6/migration/
    warnings.warn('The dict method is deprecated; use model_dump instead.', category=PydanticDeprecatedSince20)

  • tests/whist_core/session/test_table.py::TableTestCase::test_table_random_matcher_from_json_generic
    PydanticDeprecatedSince20: The __fields__ attribute is deprecated, use model_fields instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.6/migration/

@Segelzwerg Segelzwerg added good first issue Good for newcomers dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Apr 15, 2024
@github-actions github-actions bot added the Stale label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file good first issue Good for newcomers python Pull requests that update Python code Stale
Projects
None yet
Development

No branches or pull requests

1 participant