diff options
| -rw-r--r-- | .github/workflows/build.yml | 6 | ||||
| -rw-r--r-- | Pipfile | 4 | ||||
| -rw-r--r-- | alarmpy/__init__.py | 0 | ||||
| -rw-r--r-- | alarmpy/alarmpy.py (renamed from alarmpy.py) | 0 | ||||
| -rw-r--r-- | alarmpy/tests/__init__.py | 0 | ||||
| -rw-r--r-- | alarmpy/tests/test_alarmpy.py | 6 |
6 files changed, 11 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4ba0f7..bbe168b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,6 @@ jobs: - name: Run pylint run: | pipenv run lint - # - name: Test with pytest - # run: | - # pipenv run test + - name: Test with pytest + run: | + pipenv run test @@ -13,8 +13,8 @@ black = "==21.5b1" pylint = "*" [scripts] -alarmpy = "python alarmpy.py" +alarmpy = "python alarmpy/alarmpy.py" format = "black ." formatcheck = "black --check ." -lint = "pylint -j 0 -d R,C alarmpy.py" +lint = "pylint -j 0 -d R,C alarmpy" test = "pytest" diff --git a/alarmpy/__init__.py b/alarmpy/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/alarmpy/__init__.py diff --git a/alarmpy.py b/alarmpy/alarmpy.py index 55f66c6..55f66c6 100644 --- a/alarmpy.py +++ b/alarmpy/alarmpy.py diff --git a/alarmpy/tests/__init__.py b/alarmpy/tests/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/alarmpy/tests/__init__.py diff --git a/alarmpy/tests/test_alarmpy.py b/alarmpy/tests/test_alarmpy.py new file mode 100644 index 0000000..3ca635c --- /dev/null +++ b/alarmpy/tests/test_alarmpy.py @@ -0,0 +1,6 @@ +from ..alarmpy import Alarm + + +def test_foo(): + _alarm = Alarm() + assert 1 == 1 |
