aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-07-25 15:21:02 +0100
committerGravatar Chris Lovering <[email protected]>2023-08-11 15:53:26 +0100
commit292fba7c58b24df30f7631290bfecdbbd74da141 (patch)
tree8d29c9c4e53f795e16a2b5a6f4a77c588e205fd4 /tests
parentUse new Pydantic v2 logic for constant loading (diff)
Replace deprecated functions with new pydantic v2 functions
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/filtering/test_settings_entries.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/exts/filtering/test_settings_entries.py b/tests/bot/exts/filtering/test_settings_entries.py
index 3ae0b5ab5..988435022 100644
--- a/tests/bot/exts/filtering/test_settings_entries.py
+++ b/tests/bot/exts/filtering/test_settings_entries.py
@@ -173,7 +173,7 @@ class FilterTests(unittest.TestCase):
result = infraction1.union(infraction2)
self.assertDictEqual(
- result.dict(),
+ result.model_dump(),
{
"infraction_type": Infraction.TIMEOUT,
"infraction_reason": "there",
@@ -206,7 +206,7 @@ class FilterTests(unittest.TestCase):
result = infraction1.union(infraction2)
self.assertDictEqual(
- result.dict(),
+ result.model_dump(),
{
"infraction_type": Infraction.BAN,
"infraction_reason": "",