.gitignore: setup.py: Integrate pytest to run tests.
This commit is contained in:
parent
a6e46b0cca
commit
348b82e087
4 changed files with 13 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
*.egg
|
||||
*.egg-info/
|
||||
.cache/
|
||||
__pycache__/
|
||||
|
|
|
@ -32,3 +32,8 @@ Here's an example of using the Python library, complete with caching results:
|
|||
if loader.should_cache():
|
||||
cache_writer.save_rate(hist_rate)
|
||||
# Rates are available from the hist_rates.rates dict.
|
||||
|
||||
Running tests
|
||||
-------------
|
||||
|
||||
Run `./setup.py test` from your checkout directory.
|
||||
|
|
2
setup.cfg
Normal file
2
setup.cfg
Normal file
|
@ -0,0 +1,2 @@
|
|||
[aliases]
|
||||
test=pytest
|
4
setup.py
4
setup.py
|
@ -9,6 +9,10 @@ setup(
|
|||
author='Brett Smith',
|
||||
author_email='brettcsmith@brettcsmith.org',
|
||||
license='GNU AGPLv3+',
|
||||
|
||||
setup_requires=['pytest-runner'],
|
||||
tests_require=['pytest'],
|
||||
|
||||
packages=['oxrlib'],
|
||||
entry_points={
|
||||
'console_scripts': ['oxrquery = oxrlib.__main__:main'],
|
||||
|
|
Loading…
Reference in a new issue