mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-13 06:22:41 +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
|
||||
name: str
|
||||
|
||||
|
||||
test = TestModel(id=1, name="test")
|
||||
test = DbTestModel(id=1, name="test")
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
Reference in New Issue
Block a user