added more requirements and dockerfile for tests

This commit is contained in:
Patrick762 committed 2025-02-07 14:30:42 +01:00
1 parent c5f985b5f6
commit db0147e7c1
4 files changed
+20 -2

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"
+6
View File
@@ -3,3 +3,9 @@ bleak_retry_connector
pyserial
bluetooth_auto_recovery
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 .