Skip to content

Commit

Permalink
Merge pull request #24 from mulkieran/master-pytest
Browse files Browse the repository at this point in the history
Remove pytest dependency
  • Loading branch information
mulkieran authored Dec 2, 2020
2 parents 5bb28f6 + ac4d1a1 commit 9c6823e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/test_hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ParseTestCase(unittest.TestCase):
_PARSER = Parser()

@given(dbus_signatures())
@settings(max_examples=100)
@settings(max_examples=50, deadline=None)
def test_parsing(self, signature):
"""
Test that parsing is always succesful on valid strings.
Expand Down
7 changes: 2 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@ envlist=lint,test,coverage
deps =
coverage
hs-dbus-signature
pytest>=2.8
commands =
coverage --version
coverage run --timid --branch -m pytest tests
coverage run --timid --branch -m unittest discover tests
coverage report -m --fail-under=100 --show-missing --include="{envsitepackagesdir}/dbus_signature_pyparsing/*"
coverage html --include="{envsitepackagesdir}/dbus_signature_pyparsing/*"

[testenv:lint]
deps =
hs-dbus-signature
pylint
pytest>=2.8
commands =
./check.py check.py
./check.py setup.py
Expand All @@ -26,6 +24,5 @@ commands =
[testenv:test]
deps =
hs-dbus-signature
pytest>=2.8
commands =
py.test tests
python3 -m unittest discover --verbose tests

0 comments on commit 9c6823e

Please sign in to comment.