Skip to content

Commit 656d062

Browse files
committed
prepare to add tests
1 parent 54ee9a0 commit 656d062

4 files changed

Lines changed: 23 additions & 3 deletions

File tree

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# general things to ignore
22
build/
33
dist/
4+
htmlcov/
5+
.coverage
6+
.eggs
7+
*cache
48
*.egg-info/
59
*.egg
610
*.py[cod]
711
__pycache__/
812
*.so
913
*~
10-
.DS_Store
14+
.DS_Store

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ dist:
88

99
upload: dist
1010
twine upload dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
11+
12+
test:
13+
python3 setup.py test
14+
15+
clean:
16+
find . -name "*.pyc" -delete
17+
find . -name "__pycache__" -delete

setup.cfg

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,11 @@
22
# This flag says that the code is written to work on both Python 2 and Python
33
# 3. If at all possible, it is good practice to do this. If you cannot, you
44
# will need to generate wheels for each Python version that you support.
5-
universal=1
5+
universal=1
6+
7+
[aliases]
8+
test=pytest
9+
10+
[tool:pytest]
11+
addopts = --verbose --fulltrace --cov auroraapi --cov-report html
12+
testpaths = tests

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,7 @@
6969
# your project is installed. For an analysis of "install_requires" vs pip's
7070
# requirements files see:
7171
# https://packaging.python.org/en/latest/requirements.html
72-
install_requires=['requests', 'pyaudio', 'pydub']
72+
install_requires=['requests', 'pyaudio', 'pydub'],
73+
setup_requires=['pytest-runner'],
74+
tests_require=['pytest', 'pytest-cov', 'mock']
7375
)

0 commit comments

Comments
 (0)