chore: fix lint
This commit is contained in:
@@ -11,12 +11,12 @@ services:
|
||||
POSTGRES_PASSWORD: lnbits
|
||||
PGDATA: /lnbits/data/postgres
|
||||
volumes:
|
||||
- ./data/postgres_test:/lnbits/data/postgres
|
||||
- ./data/postgres_test:/lnbits/data/postgres
|
||||
ports:
|
||||
- "5444:5432"
|
||||
- '5444:5432'
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d lnbits_db"]
|
||||
test: ['CMD-SHELL', 'pg_isready -d lnbits_db']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from uuid import uuid4
|
||||
|
||||
import pytest
|
||||
from sqlalchemy.exc import DBAPIError
|
||||
|
||||
from lnbits.core.crud import (
|
||||
create_account,
|
||||
@@ -14,7 +13,6 @@ from lnbits.core.crud import (
|
||||
get_wallets,
|
||||
)
|
||||
from lnbits.core.crud.settings import get_settings_field, set_settings_field
|
||||
from lnbits.db import DB_TYPE, POSTGRES
|
||||
from lnbits.core.models import Account
|
||||
from lnbits.core.models.extensions import UserExtension
|
||||
from lnbits.core.models.users import RegisterUser
|
||||
@@ -117,7 +115,8 @@ async def test_create_user_account_no_check_creates_wallet_and_extensions(
|
||||
# with pytest.raises(DBAPIError, match="current transaction is aborted"):
|
||||
# await create_user_account_no_ckeck(account, default_exts=["dup-ext"])
|
||||
# else:
|
||||
# user = await create_user_account_no_ckeck(account, default_exts=["dup-ext"])
|
||||
# user = await
|
||||
# create_user_account_no_ckeck(account, default_exts=["dup-ext"])
|
||||
# finally:
|
||||
# settings.lnbits_user_default_extensions = original_default_exts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user