Skip to content

Commit 4f670a4

Browse files
committed
Project restructure
1 parent d6a4158 commit 4f670a4

File tree

13 files changed

+24
-15
lines changed

13 files changed

+24
-15
lines changed

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ license = "MIT"
1818
maintainers = ["Erwin Douna <e.douna@gmail.com>"]
1919
packages = [{ include = "pymelcloud", from = "src" }]
2020
readme = "README.md"
21-
repository = "https://github.com/erwindouna/python-tado"
21+
repository = "https://github.com/erwindouna/python-melcloud"
2222

2323
[tool.poetry.dependencies]
2424
aiohttp = ">=3.0.0"
@@ -29,8 +29,8 @@ yarl = ">=1.6.0"
2929
aioresponses = "^0.7.6"
3030

3131
[tool.poetry.urls]
32-
"Bug Tracker" = "https://github.com/erwindouna/python-tado/issues"
33-
Changelog = "https://github.com/erwindouna/python-tado/releases"
32+
"Bug Tracker" = "https://github.com/erwindouna/python-melcloud/issues"
33+
Changelog = "https://github.com/erwindouna/python-melcloud/releases"
3434

3535
[tool.poetry.group.dev.dependencies]
3636
aresponses = "3.0.0"
@@ -56,7 +56,7 @@ show_missing = true
5656

5757
[tool.coverage.run]
5858
plugins = ["covdefaults"]
59-
source = ["tadoasync"]
59+
source = ["src/pymelcloud"]
6060

6161
[tool.mypy]
6262
# Specify the target platform details in config, so your developers are

tests/test_ata_properties.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
import pytest
66
from unittest.mock import AsyncMock, Mock, patch
77
from aiohttp.web import HTTPForbidden
8-
from pymelcloud import DEVICE_TYPE_ATA
9-
from pymelcloud.const import ACCESS_LEVEL
10-
from pymelcloud.ata_device import (
8+
from src.pymelcloud import DEVICE_TYPE_ATA
9+
10+
import src.pymelcloud
11+
from src.pymelcloud.const import ACCESS_LEVEL
12+
from src.pymelcloud.ata_device import (
1113
OPERATION_MODE_HEAT,
1214
OPERATION_MODE_DRY,
1315
OPERATION_MODE_COOL,
@@ -42,7 +44,7 @@ def _build_device(device_conf_name: str, device_state_name: str) -> AtaDevice:
4244
with open(os.path.join(test_dir, device_state_name), "r") as json_file:
4345
device_state = json.load(json_file)
4446

45-
with patch("pymelcloud.client.Client") as _client:
47+
with patch("src.pymelcloud.client.Client") as _client:
4648
_client.update_confs = AsyncMock()
4749
_client.device_confs.__iter__ = Mock(return_value=[device_conf].__iter__())
4850
_client.fetch_device_units = AsyncMock(return_value=[])

tests/test_atw_properties.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
"""Ecodan tests."""
22
import pytest
3-
from pymelcloud import DEVICE_TYPE_ATW
4-
from pymelcloud.atw_device import (
3+
4+
import src.pymelcloud
5+
from src.pymelcloud import DEVICE_TYPE_ATW
6+
from src.pymelcloud.atw_device import (
57
OPERATION_MODE_AUTO,
68
OPERATION_MODE_FORCE_HOT_WATER,
79
STATUS_HEAT_WATER,

0 commit comments

Comments
 (0)