Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarl = ">=1.9.0"
pytest = ">=7,<10"
pytest-cov = ">=3,<8"
pytest-asyncio = ">=0.23.6,<1.4.0"
aioresponses = "^0.7.6"
aiointercept = "^0.1.7"

[tool.poetry.group.docs]
optional = true
Expand Down
4 changes: 2 additions & 2 deletions tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import aiohttp
import pytest
from aioresponses import aioresponses
from aiointercept import aiointercept

from aiosolaredge import SolarEdge

Expand Down Expand Up @@ -33,7 +33,7 @@ async def test_create_object_passed_session():
@pytest.mark.asyncio
async def test_simple_requests() -> None:
"""Creating an object works as expected."""
with aioresponses() as mocked:
async with aiointercept(mock_external_urls=True) as mocked:
solar_edge = SolarEdge("API_KEY")
assert solar_edge.timeout == 10
assert solar_edge.api_key == "API_KEY"
Expand Down
Loading