Automatically run test files with pytest (#9576)

* Switch to pytest

git grep -l unittest.main | xargs sed -i 's/unittest.main()/sys.exit(pytest.main([__file__]))/g'
git ls-files -m | xargs -I {} sh -c "echo 'import sys\nimport pytest' >> '{}'"
isort --float-to-top .

* add pytest dep

* use sys.argv
This commit is contained in:
Brad Warren
2023-02-14 06:44:42 +11:00
committed by GitHub
parent 057524aa52
commit dc07dfd07b
103 changed files with 391 additions and 95 deletions
+5
View File
@@ -30,6 +30,10 @@ docs_extras = [
'sphinx_rtd_theme',
]
test_extras = [
'pytest',
]
setup(
name='certbot-dns-dnsmadeeasy',
version=version,
@@ -65,6 +69,7 @@ setup(
install_requires=install_requires,
extras_require={
'docs': docs_extras,
'test': test_extras,
},
entry_points={
'certbot.plugins': [