test: fix TestModel warning (#2317)

PytestCollectionWarning: cannot collect test class 'TestModel' because it has a __init__ constructor (from: tests/core/test_helpers_query.py)
This commit is contained in:
dni ⚡
2024-03-12 11:32:10 +01:00
committed by GitHub
parent 16cb1a8026
commit 3ef1941fc0

View File

@ -7,12 +7,12 @@ from lnbits.helpers import (
) )
class TestModel(BaseModel): class DbTestModel(BaseModel):
id: int id: int
name: str name: str
test = TestModel(id=1, name="test") test = DbTestModel(id=1, name="test")
@pytest.mark.asyncio @pytest.mark.asyncio