Skip to content

Commit 3a31d97

Browse files
committed
docs: refactor test descr
1 parent 3b5538d commit 3a31d97

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

tests/server/tasks/test_database_push_notification_config_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,8 @@ async def test_core_to_0_3_model_conversion(
826826
) -> None:
827827
"""Test storing and retrieving push notification configs in v0.3 format using conversion utilities.
828828
829-
Setting the model_to_core_conversion to compat_push_notification_config_model_to_core would be redundant since it is the default for
830-
0.3 entries in the DataBase.
829+
Setting the model_to_core_conversion to compat_push_notification_config_model_to_core would be redundant as
830+
it is always called when retrieving 0.3 PushNotificationConfigs.
831831
"""
832832
store = db_store_parameterized
833833

tests/server/tasks/test_database_task_store.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,11 @@ async def test_custom_conversion():
867867
async def test_core_to_0_3_model_conversion(
868868
db_store_parameterized: DatabaseTaskStore,
869869
) -> None:
870-
"""Test storing and retrieving tasks in v0.3 format using conversion utilities."""
870+
"""Test storing and retrieving tasks in v0.3 format using conversion utilities.
871+
872+
Setting the model_to_core_conversion class variables to compat_task_model_to_core is redundant
873+
as it is always called when retrieving 0.3 tasks.
874+
"""
871875
store = db_store_parameterized
872876

873877
# Set the v0.3 persistence utilities

0 commit comments

Comments
 (0)