mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
test
This commit is contained in:
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -21,14 +21,14 @@ jobs:
|
||||
poetry-version: ${{ matrix.poetry-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
poetry install
|
||||
poetry install --with dev
|
||||
- name: Run mint
|
||||
env:
|
||||
LIGHTNING: False
|
||||
MINT_SERVER_HOST: 0.0.0.0
|
||||
MINT_SERVER_PORT: 3338
|
||||
run: |
|
||||
poetry run mint
|
||||
nohup poetry run mint &
|
||||
- name: Run tests
|
||||
env:
|
||||
LIGHTNING: False
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import time
|
||||
from re import S
|
||||
import pytest
|
||||
|
||||
from cashu.core.helpers import async_unwrap
|
||||
from cashu.core.migrations import migrate_databases
|
||||
@@ -25,6 +26,7 @@ def assert_amt(proofs, expected):
|
||||
assert [p["amount"] for p in proofs] == expected
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def run_test():
|
||||
wallet1 = Wallet1(SERVER_ENDPOINT, "data/wallet1", "wallet1")
|
||||
await migrate_databases(wallet1.db, migrations)
|
||||
|
||||
Reference in New Issue
Block a user