Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
travis allow failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ovv committed Jan 1, 2018
1 parent bf8ed65 commit b99c376
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ language: python
matrix:
fast_finish: true
allow_failures:
- nightly
- 3.7-dev
- 3.6-dev
- python: nightly
- python: 3.7-dev
- python: 3.6-dev

python:
- '3.6'
Expand Down
3 changes: 2 additions & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ async def test_query_headers(self, client):
]}, ), indirect=True)
async def test_retry_rate_limited(self, client):
client.sleep = asynctest.CoroutineMock(side_effect=client.sleep)
await client.query(methods.AUTH_TEST)
rep = await client.query(methods.AUTH_TEST)
assert client._request.call_count == 2
client.sleep.assert_called_once_with(1)
assert client._request.call_args_list[0] == client._request.call_args_list[1]
args, kwargs = client._request.call_args_list[0]
assert args == ('POST', 'https://slack.com/api/auth.test', {}, {'token': 'abcdefg'})
assert kwargs == {}
assert rep == {'ok': True}

@pytest.mark.parametrize('client', ({'retry_when_rate_limit': True,
'_request': [
Expand Down

0 comments on commit b99c376

Please sign in to comment.