Skip to content

Commit

Permalink
Allow to run tests under pipx
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreeeee committed Jul 30, 2023
1 parent 7336679 commit c98f688
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
"pyScannerWrapper==0.2.1",
],
extras_require={"testing": ["pytest"]},
entry_points={"console_scripts": ["yokkaichi=yokkaichi.__main__:main"]},
entry_points={
"console_scripts": [
"yokkaichi=yokkaichi.__main__:main",
"yokkaichi_tests=yokkaichi_tests.__main__:main",
]
},
classifiers=[
"Environment :: Console",
"License :: OSI Approved :: MIT License",
Expand Down
6 changes: 5 additions & 1 deletion yokkaichi_tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
sys.exit(1)


if __name__ == "__main__":
def main():
sys.exit(pytest.main(["-vv"]))


if __name__ == "__main__":
main()

0 comments on commit c98f688

Please sign in to comment.