Skip to content

Commit f1a99f0

Browse files
committed
feat: fix tests
1 parent 70e7127 commit f1a99f0

File tree

7 files changed

+635
-742
lines changed

7 files changed

+635
-742
lines changed

.github/workflows/ci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
python-version:
16-
- "3.8"
17-
- "3.9"
1816
- "3.10"
19-
- "3.11"
2017
steps:
2118
- name: Checkout
2219
uses: actions/checkout@v4
@@ -29,6 +26,6 @@ jobs:
2926
with:
3027
version: 1.7.1
3128
- name: Install dependencies
32-
run: poetry install
29+
run: poetry install --with dev
3330
- name: Run tests
3431
run: poetry run pytest

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ dist
44
.idea
55
tests
66
py_near.egg-info
7-
poetry.lock
87
env
98
.env

poetry.lock

+619-697
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readme = "README.md"
88
[tool.poetry.dependencies]
99
base58 = "^2.1.1"
1010
python = ">=3.8,<3.12"
11-
aiohttp = "^3.7.4"
11+
httpx = "0.26.0"
1212
py-near-primitives = "0.2.3"
1313
frozenlist = "^1.4.1"
1414
pynacl = "^1.5.0"
@@ -27,7 +27,7 @@ pytest-asyncio = "^0.23.5"
2727
[project]
2828
name = "py-near"
2929
version = "1.1.50"
30-
description = "Pretty simple and fully asynchronous framework for working with NEAR blockchaink"
30+
description = "Pretty simple and fully asynchronous framework for working with NEAR blockchain"
3131
authors = [ {name = "pvolnov", email = "[email protected]"} ]
3232
license = {file = "LICENSE"}
3333

tests/conftest.py

-24
This file was deleted.

tests/test_account.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1-
async def test_account_get_balance(account):
2-
assert await account.get_balance() > 0
1+
import pytest
2+
3+
from py_near.account import Account
4+
5+
6+
@pytest.mark.asyncio
7+
async def test_account_get_balance():
8+
acc = Account(
9+
account_id="bob.testnet",
10+
rpc_addr="https://rpc.testnet.near.org",
11+
)
12+
13+
assert await acc.get_balance(account_id=acc.account_id) > 0

tests/test_token.py

-12
This file was deleted.

0 commit comments

Comments
 (0)