Skip to content

Commit

Permalink
Enable CI for Python 3.7 & limit fuzzing
Browse files Browse the repository at this point in the history
In current hypothesis version there is no longer timeout for test,
so limit of tested examples needs to be matching with CI time limit
for pass test.
  • Loading branch information
kam193 committed Jan 16, 2020
1 parent 90a21e4 commit 869c0e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -5,6 +5,7 @@ python:
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "pypy"
- "pypy3"
install:
Expand Down
2 changes: 1 addition & 1 deletion src/icalendar/tests/hypothesis/test_fuzzing.py
Expand Up @@ -23,7 +23,7 @@ class TestFuzzing(unittest.TestCase):
st.tuples(key, st.dictionaries(key, value), value),
min_size=1
))
@settings(max_examples=10**4)
@settings(max_examples=3000)
def test_main(self, lines):
cl = Contentlines()
for key, params, value in lines:
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
@@ -1,15 +1,15 @@
# to run for a specific environment, use ``tox -e ENVNAME``
[tox]
envlist = py27,py34,py35,py36,pypy,pypy3
envlist = py27,py34,py35,py36,py37,pypy,pypy3

[testenv]
deps =
pytest
coverage
py{27,34,35,36}: hypothesis>=3.0
py{27,34,35,36,37}: hypothesis>=3.0
.[test]
commands =
coverage run --source=src/icalendar --omit=*/tests/* --module pytest []
py{27,34,35,36}: coverage run --append --source=src/icalendar --omit=*/tests/* --module pytest [] src/icalendar/tests/hypothesis/
py{27,34,35,36,37}: coverage run --append --source=src/icalendar --omit=*/tests/* --module pytest [] src/icalendar/tests/hypothesis/
coverage report
coverage html

0 comments on commit 869c0e4

Please sign in to comment.