chore: update deprecated pydantic fields access

This commit is contained in:
Oleg A 2023-09-18 14:25:28 +03:00
parent c229cf8c7b
commit a8573aa2af
No known key found for this signature in database
GPG key ID: 5FE046817A9657C5

View file

@ -10,7 +10,7 @@ class TestReplyKeyboardRemove:
def test_remove_keyboard_default_is_true(self):
assert (
ReplyKeyboardRemove.__fields__["remove_keyboard"].default is True
ReplyKeyboardRemove.model_fields["remove_keyboard"].default is True
), "Remove keyboard has incorrect default value!"
@pytest.mark.parametrize(