Skip to content

Commit

Permalink
Full test-output
Browse files Browse the repository at this point in the history
  • Loading branch information
bouwew committed Oct 8, 2023
1 parent 68cb5b6 commit 4972779
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions plugwise/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ def _p1_smartmeter_info_finder(self, appl: Munch) -> None:
self.gw_devices[appl.dev_id][p1_key] = value
self._count += 1

LOGGER.debug("HOI P1 count: %s", self._count)

def _create_legacy_gateway(self) -> None:
"""Create the (missing) gateway devices for legacy Anna, P1 and Stretch.
Expand Down Expand Up @@ -712,6 +714,8 @@ def _all_appliances(self) -> None:
self.gw_devices[appl.dev_id][appl_key] = value
self._count += 1

LOGGER.debug("HOI others count: %s", self._count)

# For non-legacy P1 collect the connected SmartMeter info
if self.smile_type == "power":
self._p1_smartmeter_info_finder(appl)
Expand Down Expand Up @@ -1229,6 +1233,7 @@ def _get_group_switches(self) -> dict[str, DeviceData]:
)
self._count += 4

LOGGER.debug("HOI groups count: %s", self._count)
return switch_groups

def _heating_valves(self) -> int | None:
Expand Down
3 changes: 2 additions & 1 deletion scripts/tests_and_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ set +u

if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "test_and_coverage" ] ; then
# Python tests (rerun with debug if failures)
PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing || PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/
#PYTHONPATH=$(pwd) pytest -qx tests/ --cov='.' --no-cov-on-fail --cov-report term-missing ||
PYTHONPATH=$(pwd) pytest -xrpP --log-level debug tests/
fi

if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "linting" ] ; then
Expand Down

0 comments on commit 4972779

Please sign in to comment.