mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-18 17:02:38 +02:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user