File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 python -m pip install --upgrade pip
3030 pip install -r requirements.txt
3131 pip install -r requirements_test_api.txt
32- - name : Install dependencies
33- run : pip install pytest pytest-md pytest-emoji
3432 - name : Run tests
3533 uses : pavelzw/pytest-action@v2
3634 with :
Original file line number Diff line number Diff line change 11{
22 "files.associations" : {
33 "config/*.yaml" : " home-assistant"
4- }
4+ },
5+ "python.testing.pytestArgs" : [
6+ " tests/tests_api" ,
7+ " --cov-report=term-missing" ,
8+ " --cov=custom_components.tech.tech" ,
9+ " tests/"
10+ ],
11+ "python.testing.unittestEnabled" : false ,
12+ "python.testing.pytestEnabled" : true
513}
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ pytest-sugar==1.0.0
1717pytest-timeout==2.2.0
1818pytest-xdist==3.3.1
1919pytest==8.0.2
20+ pytest-md==0.2.0
21+ pytest-emoji==0.2.0
2022requests_mock==1.11.0
2123responses==0.12.0
2224stdlib-list==0.7.0
Original file line number Diff line number Diff line change 44
55cd " $( dirname " $0 " ) /.."
66
7- python3 -m pip install --requirement requirements.txt
7+ python3 -m pip install --requirement requirements.txt --requirement requirements_test_api.txt
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+
5+ pytest tests/tests_api --cov-report=term-missing --cov=custom_components.tech.tech tests/
You can’t perform that action at this time.
0 commit comments