fix: unrelated test
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ def run_before_and_after_tests(settings: Settings):
|
|||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
async def app(settings: Settings):
|
async def app(settings: Settings):
|
||||||
app = create_app()
|
app = create_app()
|
||||||
async with LifespanManager(app) as manager:
|
async with LifespanManager(app, startup_timeout=30) as manager:
|
||||||
settings.first_install = True
|
settings.first_install = True
|
||||||
await first_install(
|
await first_install(
|
||||||
UpdateSuperuserPassword(
|
UpdateSuperuserPassword(
|
||||||
|
|||||||
@@ -1433,7 +1433,7 @@ def test_check_revolut_signature_multiple_v1_headers():
|
|||||||
check_revolut_signature(payload, sig_header, timestamp, secret)
|
check_revolut_signature(payload, sig_header, timestamp, secret)
|
||||||
|
|
||||||
|
|
||||||
def test_check_revolut_signature_docs_vector():
|
def test_check_revolut_signature_docs_vector(mocker: MockerFixture):
|
||||||
payload = (
|
payload = (
|
||||||
b'{"data":{"id":"645a7696-22f3-aa47-9c74-cbae0449cc46",'
|
b'{"data":{"id":"645a7696-22f3-aa47-9c74-cbae0449cc46",'
|
||||||
b'"new_state":"completed","old_state":"pending",'
|
b'"new_state":"completed","old_state":"pending",'
|
||||||
@@ -1445,10 +1445,13 @@ def test_check_revolut_signature_docs_vector():
|
|||||||
secret = "wsk_r59a4HfWVAKycbCaNO1RvgCJec02gRd8"
|
secret = "wsk_r59a4HfWVAKycbCaNO1RvgCJec02gRd8"
|
||||||
sig = "v1=bca326fb378d0da7f7c490ad584a8106bab9723d8d9cdd0d50b4c5b3be3837c0"
|
sig = "v1=bca326fb378d0da7f7c490ad584a8106bab9723d8d9cdd0d50b4c5b3be3837c0"
|
||||||
|
|
||||||
check_revolut_signature(
|
mocker.patch(
|
||||||
payload, sig, timestamp, secret, tolerance_seconds=100000000
|
"lnbits.core.services.fiat_providers.time.time",
|
||||||
|
return_value=int(timestamp) / 1000,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
check_revolut_signature(payload, sig, timestamp, secret)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.anyio
|
@pytest.mark.anyio
|
||||||
async def test_fiat_service_fee(settings: Settings):
|
async def test_fiat_service_fee(settings: Settings):
|
||||||
|
|||||||
Reference in New Issue
Block a user