Skip to content

Commit

Permalink
Automatically rerun failed tests due to urllib dropping connections t…
Browse files Browse the repository at this point in the history
…o the testing server.
  • Loading branch information
domdfcoding committed Mar 23, 2021
1 parent ae2175b commit 6499675
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ license: 'MIT'
short_desc: 'Python interface to the Octopus Energy API.'

enable_conda: False
min_coverage: 95

extra_sphinx_extensions:
- attr_utils.autoattrs
Expand All @@ -25,7 +26,6 @@ python_versions:
manifest_additional:
- demo.py


classifiers:
- 'Development Status :: 4 - Beta'
- 'Intended Audience :: Developers'
Expand All @@ -40,4 +40,5 @@ additional_ignore:
- car.py
- carv2.py

min_coverage: 95
tox_unmanaged:
- pytest
3 changes: 2 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
coincidence>=0.1.0
coverage>=5.1
coverage-pyver-pragma>=0.0.6
coverage-pyver-pragma>=0.2.1
domdf-python-tools[testing]>=2.0.1
iniconfig!=1.1.0,>=1.0.1
pytest>=6.0.0
pytest-cov>=2.8.1
pytest-httpserver>=0.3.5
pytest-randomly>=3.3.1
pytest-regressions>=2.0.2
pytest-rerunfailures>=9.1.1
pytest-timeout>=1.4.2
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ toplevel = octo_api
package = octo_api
[pytest]
addopts = --color yes --durations 25
addopts = --color yes --durations 25 --reruns 2 --reruns-delay 2
timeout = 300
[gh-actions]
Expand Down

0 comments on commit 6499675

Please sign in to comment.