Skip to content

Commit

Permalink
fix list for python3.7 and 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
skar404 committed Apr 6, 2024
1 parent 1be2601 commit e25657b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ packages = [
[tool.poetry.dependencies]
python = ">=3.7,<4.0"
aiohttp = [
{ version = ">=3.8.0", python = ">=3.7,<3.8" },
{ version = ">=3.9.3", python = ">3.7" }
{ version = ">=3.8.0,<3.9", python = ">=3.7,<3.8" },
{ version = ">=3.9.3", python = ">=3.8" }
]

[tool.poetry.dev-dependencies]
Expand Down
8 changes: 5 additions & 3 deletions tests/integrations/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,11 @@ async def test_request_with_correct_fingerprint():
option=Options(
is_json=False,
is_ssl=None,
request_kwargs={
'fingerprint': bytes.fromhex(fingerprint)}
request_kwargs={'fingerprint': bytes.fromhex(fingerprint)},
is_close_session=True,
))
await http.get()
assert True


@pytest.mark.integtest
Expand All @@ -312,7 +313,8 @@ async def test_request_with_broken_fingerprint():
option=Options(
is_json=False,
is_ssl=None,
request_kwargs={'fingerprint': bytes.fromhex('0' * 64)}
request_kwargs={'fingerprint': bytes.fromhex('0' * 64)},
is_close_session=True,
))
try:
await http.get()
Expand Down
13 changes: 13 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tox]
requires =
tox>=4
env_list = lint, type, py{37,38,39,310,311,312}

[testenv]
description = run unit tests
deps =
pytest
pytest-asyncio

commands =
pytest .

0 comments on commit e25657b

Please # to comment.