Skip to content

Commit dfd3f81

Browse files
committed
add dummy tests
we need to have some tests at first to setup pytest,tox and ci
1 parent 8b24451 commit dfd3f81

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

tests/__init__.py

Whitespace-only changes.

tests/test_version.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from s_tool import __version__
2+
3+
4+
def test_version():
5+
# a dummy test, for setting up pytest, tox, and test on ci
6+
# will remove it after writing real test cases
7+
assert __version__.startswith("0")

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[tox]
2+
isolated_build = True
3+
envlist = py38,py39
4+
5+
[testenv]
6+
deps =
7+
pytest
8+
pytest-cov
9+
commands = pytest

0 commit comments

Comments
 (0)