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