Merge pull request #152 from Patrick762/unittest-fix

Unittest fix
This commit is contained in:
Patrick762 authored and GitHub committed 2025-02-07 14:43:04 +01:00
commit 8912a0bd08
4 files changed
+21 -3

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
*/__pycache__/
*.pyc
.DS_Store
+9
View File
@@ -0,0 +1,9 @@
FROM python:3
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY tests ./tests
COPY custom_components ./custom_components
RUN python3 -m unittest discover -s tests -p "*_test.py"
+7 -1
View File
@@ -2,4 +2,10 @@ homeassistant
bleak_retry_connector
pyserial
bluetooth_auto_recovery
crcmod
crcmod
typing
asyncio
logging
bleak
async_timeout
aiousbwatcher
+2 -2
View File
@@ -1,4 +1,4 @@
#!/bin/sh
# Execute unittests of python library
python3 -m unittest discover -s tests -p "*_test.py"
# Execute unittests of python library inside docker
sudo docker build --progress=plain -t bluetti-bt-tests .