Skip to content

Commit

Permalink
Testing and Bumping 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nidble committed Dec 27, 2024
1 parent ecbb2e8 commit a7a58fd
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# artifacts
__pycache__
pyvenv.cfg
.pytest*
pytestdebug.log
*.egg-info
Expand All @@ -9,6 +10,9 @@ site/*


# misc
bin
lib
lib64
.cache
.coverage
.ruff_cache
Expand All @@ -19,9 +23,5 @@ site/*
coverage.xml
test_results/*


# Home Assistant configuration
config/*
!config/configuration.yaml
images/image.png
venv/
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ python tools/inim_cli.py --username <YOUR_INIM_USERNAME> --password <YOUR_INIM_P
python tools/inim_cli.py --username <YOUR_INIM_USERNAME> --password <YOUR_INIM_PASSWORD> --list areas
```

## Test

```sh
pip install virtualenv # (if you don't already have virtualenv installed, see https://virtualenv.pypa.io/en/latest/installation.html)
virtualenv venv # to create your new environment (called 'venv' here)
source venv/bin/activate # to enter the virtual environment
pip install -r requirements.test.txt
```

## Disclaimer

This project has no relation with the Inim company.
Expand Down
4 changes: 3 additions & 1 deletion requirements.test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pyinim

pytest
pytest-cov==2.9.0
pytest-cov==6.0.0
pytest-homeassistant-custom-component
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Tests for the Minim Alarm component."""
Empty file added tests/test_binary_sensor.py
Empty file.
2 changes: 1 addition & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test component setup."""
from homeassistant.setup import async_setup_component

from custom_components.inim.const import DOMAIN
from custom_components.minim.const import DOMAIN


async def test_async_setup(hass):
Expand Down

0 comments on commit a7a58fd

Please sign in to comment.