basic test, fix some typos
This commit is contained in:
parent
c05bf7eb4f
commit
f6cbdc9da7
@ -1,7 +1,7 @@
|
||||
# https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
|
||||
|
||||
[metadata]
|
||||
name = hasskisok
|
||||
name = hasskiosk
|
||||
author = Mike Bloy
|
||||
author_email = mike@bloy.org
|
||||
description = Helper application for homeassistant kiosk screens
|
||||
@ -17,6 +17,7 @@ package_dir =
|
||||
=src
|
||||
packages = find:
|
||||
install_requires =
|
||||
environs
|
||||
paho-mqtt
|
||||
|
||||
[options.packages.find]
|
||||
|
||||
1
tests/conftest.py
Normal file
1
tests/conftest.py
Normal file
@ -0,0 +1 @@
|
||||
"""Test configuration and fixtures."""
|
||||
10
tests/test_version.py
Normal file
10
tests/test_version.py
Normal file
@ -0,0 +1,10 @@
|
||||
"""Test version number handling."""
|
||||
|
||||
from importlib_metadata import version
|
||||
|
||||
from hasskiosk import __version__
|
||||
|
||||
|
||||
def test_package_version_matches_dunder_version():
|
||||
"""Test that package metadata version matches the package __version__."""
|
||||
assert __version__ == version("hasskiosk")
|
||||
6
tox.ini
6
tox.ini
@ -5,12 +5,14 @@ isolated_build = True
|
||||
[testenv]
|
||||
wheel = true
|
||||
wheel_build_env = build
|
||||
basepython = python3.7
|
||||
|
||||
[testenv:build]
|
||||
deps = setuptools
|
||||
|
||||
[testenv:py37]
|
||||
deps =
|
||||
importlib_metadata
|
||||
pytest
|
||||
pytest-cov
|
||||
pdbpp
|
||||
@ -32,14 +34,12 @@ commands =
|
||||
[testenv:lint]
|
||||
deps =
|
||||
flake8
|
||||
flake8-bandit
|
||||
flake8-blind-except
|
||||
flake8-builtins
|
||||
flake8-docstrings
|
||||
flake8-executable
|
||||
flake8-isort
|
||||
flake8-logging-format
|
||||
flake8-mypy
|
||||
pycodestyle
|
||||
pydocstyle
|
||||
commands =
|
||||
@ -51,6 +51,7 @@ commands =
|
||||
|
||||
[testenv:dev]
|
||||
# this environment lets tox create a development env quickly and easily
|
||||
recreate=True
|
||||
deps =
|
||||
bpython
|
||||
mypy
|
||||
@ -60,7 +61,6 @@ deps =
|
||||
{[testenv:security]deps}
|
||||
{[testenv:security]deps}
|
||||
{[testenv:lint]deps}
|
||||
basepython = python3.7
|
||||
envdir = {toxinidir}/.venv
|
||||
usedevelop = True
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user