mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 07:07:48 +01:00
* F821: undefine name disabled and logged webhook_listener for opennode and lnpay because they are obviously not working * E402: module level import not at top of file * E721 fixes, only popped up for python3.9 not 3.10
12 lines
262 B
Python
12 lines
262 B
Python
from datetime import date
|
|
|
|
import pytest
|
|
|
|
from lnbits.db import POSTGRES
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_date_conversion(db):
|
|
if db.type == POSTGRES:
|
|
row = await db.fetchone("SELECT now()::date")
|
|
assert row and isinstance(row[0], date)
|