diff --git a/tests/conftest.py b/tests/conftest.py index ffed86b5..ed3dc2f1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -34,7 +34,7 @@ settings.mint_backend_bolt11_sat = settings.mint_backend_bolt11_sat or "FakeWallet" settings.fakewallet_brr = True settings.fakewallet_delay_outgoing_payment = None -settings.fakewallet_delay_incoming_payment = 5 +settings.fakewallet_delay_incoming_payment = 1 settings.fakewallet_stochastic_invoice = False assert ( settings.mint_test_database != settings.mint_database diff --git a/tests/test_wallet_cli.py b/tests/test_wallet_cli.py index ad40cfa2..26102da5 100644 --- a/tests/test_wallet_cli.py +++ b/tests/test_wallet_cli.py @@ -109,7 +109,7 @@ def test_balance(cli_prefix): assert result.exit_code == 0 -def test_invoice_no_check(mint, cli_prefix): +def test_invoice_return_immediately(mint, cli_prefix): runner = CliRunner() result = runner.invoke( cli, @@ -132,20 +132,6 @@ def test_invoice_no_check(mint, cli_prefix): assert result.exit_code == 0 -def test_invoice(mint, cli_prefix): - runner = CliRunner() - result = runner.invoke( - cli, - [*cli_prefix, "invoice", "1000"], - ) - - assert result.exception is None - - wallet = asyncio.run(init_wallet()) - assert wallet.available_balance >= 1000 - assert result.exit_code == 0 - - def test_invoice_with_split(mint, cli_prefix): runner = CliRunner() result = runner.invoke( diff --git a/tests/test_wallet_subscription.py b/tests/test_wallet_subscription.py index c42ce885..60c512bb 100644 --- a/tests/test_wallet_subscription.py +++ b/tests/test_wallet_subscription.py @@ -27,10 +27,8 @@ async def wallet(mint): @pytest.mark.asyncio +@pytest.mark.skipif(is_fake, reason="only regtest") async def test_wallet_subscription_mint(wallet: Wallet): - if is_fake: - settings.fakewallet_delay_outgoing_payment = 2 - if not wallet.mint_info.supports_nut(WEBSOCKETS_NUT): pytest.skip("No websocket support")