Skip to content

Commit fa3840e

Browse files
committed
Add stub for testing with setup.py test
1 parent c80c349 commit fa3840e

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ wheels/
2424
.installed.cfg
2525
*.egg
2626
MANIFEST
27+
28+
29+
.pytest_cache

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[aliases]
2+
test=pytest

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@
6666
'Programming Language :: Python :: Implementation :: PyPy',
6767
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
6868
],
69+
setup_requires=['pytest-runner'],
70+
tests_require=['pytest'],
6971
)

tests/test_yaml.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""
2+
Tests for the YAML parser
3+
"""
4+
5+
6+
# content of test_sample.py
7+
def test_numbers_3_4():
8+
assert 12 == 12

0 commit comments

Comments
 (0)