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:
parent
16cb1a8026
commit
3ef1941fc0
1 changed files with 2 additions and 2 deletions
|
|
@ -7,12 +7,12 @@ from lnbits.helpers import (
|
|||
)
|
||||
|
||||
|
||||
class TestModel(BaseModel):
|
||||
class DbTestModel(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
|
||||
|
||||
test = TestModel(id=1, name="test")
|
||||
test = DbTestModel(id=1, name="test")
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue