Add stub for testing with setup.py test

This commit is contained in:
John Beard 2018-06-02 18:03:04 +01:00
parent c80c34939e
commit fa3840e0b4
4 changed files with 15 additions and 0 deletions

3
.gitignore vendored
View File

@ -24,3 +24,6 @@ wheels/
.installed.cfg
*.egg
MANIFEST
.pytest_cache

2
setup.cfg Normal file
View File

@ -0,0 +1,2 @@
[aliases]
test=pytest

View File

@ -66,4 +66,6 @@ setup(
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)

8
tests/test_yaml.py Normal file
View File

@ -0,0 +1,8 @@
"""
Tests for the YAML parser
"""
# content of test_sample.py
def test_numbers_3_4():
assert 12 == 12