mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-26 07:31:22 +01:00
12 lines
258 B
Python
12 lines
258 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 type(row[0]) == date
|