Skip to content

Commit 927ca17

Browse files
committed
Fixed pytest.
1 parent 18b7ea3 commit 927ca17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_task.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import uuid
2-
from dataclasses import dataclass
32
from typing import Dict, TypeVar
43

54
import pytest
5+
from pydantic import BaseModel
66

77
from taskiq import serializers
88
from taskiq.abc import AsyncResultBackend
@@ -52,8 +52,7 @@ async def get_result(
5252
)
5353
@pytest.mark.anyio
5454
async def test_res_parsing_success(serializer: TaskiqSerializer) -> None:
55-
@dataclass
56-
class MyResult:
55+
class MyResult(BaseModel):
5756
name: str
5857
age: int
5958

0 commit comments

Comments
 (0)