From 0e0d0940440132b5ae6229908ca62a7269a48dd1 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Thu, 15 Sep 2022 16:08:13 +0300 Subject: [PATCH] refactor tests --- pyproject.toml | 3 ++- test_wallet.py => tests/test_wallet.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) rename test_wallet.py => tests/test_wallet.py (95%) diff --git a/pyproject.toml b/pyproject.toml index fab6fd1..de9e4ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,4 +42,5 @@ build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] mint = "mint.app:main" -cashu = "wallet.cashu:cli" \ No newline at end of file +cashu = "wallet.cashu:cli" +wallet-test = "tests.test_wallet:test" \ No newline at end of file diff --git a/test_wallet.py b/tests/test_wallet.py similarity index 95% rename from test_wallet.py rename to tests/test_wallet.py index 1ce535a..107269b 100644 --- a/test_wallet.py +++ b/tests/test_wallet.py @@ -118,3 +118,7 @@ async def run_test(): if __name__ == "__main__": async_unwrap(run_test()) + + +def test(): + async_unwrap(run_test())