Skip to content

Commit

Permalink
feat: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvolnov committed Nov 27, 2024
1 parent 70e7127 commit f1a99f0
Show file tree
Hide file tree
Showing 7 changed files with 635 additions and 742 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -29,6 +26,6 @@ jobs:
with:
version: 1.7.1
- name: Install dependencies
run: poetry install
run: poetry install --with dev
- name: Run tests
run: poetry run pytest
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ dist
.idea
tests
py_near.egg-info
poetry.lock
env
.env
1,316 changes: 619 additions & 697 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readme = "README.md"
[tool.poetry.dependencies]
base58 = "^2.1.1"
python = ">=3.8,<3.12"
aiohttp = "^3.7.4"
httpx = "0.26.0"
py-near-primitives = "0.2.3"
frozenlist = "^1.4.1"
pynacl = "^1.5.0"
Expand All @@ -27,7 +27,7 @@ pytest-asyncio = "^0.23.5"
[project]
name = "py-near"
version = "1.1.50"
description = "Pretty simple and fully asynchronous framework for working with NEAR blockchaink"
description = "Pretty simple and fully asynchronous framework for working with NEAR blockchain"
authors = [ {name = "pvolnov", email = "petr@herewallet.app"} ]
license = {file = "LICENSE"}

Expand Down
24 changes: 0 additions & 24 deletions tests/conftest.py

This file was deleted.

15 changes: 13 additions & 2 deletions tests/test_account.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
async def test_account_get_balance(account):
assert await account.get_balance() > 0
import pytest

from py_near.account import Account


@pytest.mark.asyncio
async def test_account_get_balance():
acc = Account(
account_id="bob.testnet",
rpc_addr="https://rpc.testnet.near.org",
)

assert await acc.get_balance(account_id=acc.account_id) > 0
12 changes: 0 additions & 12 deletions tests/test_token.py

This file was deleted.

0 comments on commit f1a99f0

Please sign in to comment.