Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ script:
- pytest -v --cov=telegram

after_success:
coveralls
- coverage combine
- coveralls
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ filterwarnings =
ignore::DeprecationWarning

[coverage:run]
branch = False
branch = True
source = telegram
parallel = True
concurrency = thread, multiprocessing
omit =
tests/
telegram/__main__.py
Expand Down
4 changes: 2 additions & 2 deletions tests/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

def call_pre_commit_hook(hook_id):
__tracebackhide__ = True
return subprocess.call(['pre-commit', 'run', '--all-files', hook_id])
return os.system(' '.join(['pre-commit', 'run', '--all-files', hook_id]))


@pytest.mark.parametrize('hook_id', argvalues=('yapf', 'flake8', 'pylint'))
Expand All @@ -39,4 +39,4 @@ def test_pre_commit_hook(hook_id):


def test_build():
assert subprocess.call(['python', 'setup.py', 'bdist_dumb']) == 0
assert os.system('python setup.py bdist_dumb') == 0